mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 18:28:34 +02:00
24 lines
783 B
Lua
24 lines
783 B
Lua
-- Start idempotent commands
|
|
local execute = {
|
|
-- Kill any running nm-applet
|
|
"pkill nm-applet",
|
|
-- Start PulseAudio
|
|
"xset -b", -- Disable bell
|
|
-- Enable numlock
|
|
"numlockx on",
|
|
-- 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, ";"))
|
|
|
|
-- Spawn various X programs
|
|
xrun("polkit-gnome-authentication-agent-1",
|
|
"/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1")
|
|
xrun("NetworkManager Applet", "nm-applet")
|