mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 02:38:33 +02:00
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.
13 lines
449 B
Lua
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, ";"))
|