vincentbernat.i3wm-configur.../rc/start.lua
Vincent Bernat ae691bb025 systemd: tentative to manage session with systemd
To me, I think it was cleaner to have a parameter with the current
display. This way, the session is specific to the current display. It
seems BindsTo doesn't think this way.
2020-01-19 19:06:49 +01:00

13 lines
449 B
Lua

-- Start idempotent commands
local execute = {
-- Default browser
"xdg-mime default " .. config.browser .. ".desktop " ..
"x-scheme-handler/http " ..
"x-scheme-handler/https " ..
"text/html",
-- Default MIME types
"xdg-mime default org.gnome.Evince.desktop application/pdf",
"xdg-mime default gpicview.desktop image/png image/x-apple-ios-png image/jpeg image/jpg image/gif"
}
os.execute(table.concat(execute, ";"))