2012-07-06 14:19:54 +02:00
|
|
|
-- Spawn a composoting manager
|
2014-11-19 09:08:53 +01:00
|
|
|
awful.util.spawn("compton --backend glx --xrender-sync --xrender-sync-fence --vsync opengl-swc --paint-on-overlay", false)
|
2012-07-06 14:19:54 +02:00
|
|
|
|
|
|
|
-- Start idempotent commands
|
|
|
|
local execute = {
|
|
|
|
-- Start PulseAudio
|
|
|
|
"pulseaudio --check || pulseaudio -D",
|
|
|
|
"xset -b", -- Disable bell
|
|
|
|
-- Enable numlock
|
|
|
|
"numlockx on",
|
2012-08-16 21:06:08 +02:00
|
|
|
-- Default browser
|
2014-02-26 09:37:43 +01:00
|
|
|
"xdg-mime default " .. config.browser .. ".desktop " ..
|
|
|
|
"x-scheme-handler/http " ..
|
|
|
|
"x-scheme-handler/https " ..
|
|
|
|
"text/html",
|
2014-02-26 09:36:45 +01:00
|
|
|
-- Default MIME types
|
2014-02-26 10:20:40 +01:00
|
|
|
"xdg-mime default evince.desktop application/pdf",
|
2015-08-31 20:28:15 +02:00
|
|
|
"xdg-mime default gpicview.desktop image/png image/x-apple-ios-png image/jpeg image/jpg image/gif"
|
2012-07-06 14:19:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
os.execute(table.concat(execute, ";"))
|
|
|
|
|
|
|
|
-- Spawn various X programs
|
2013-12-03 18:53:25 +01:00
|
|
|
xrun("pidgin", "pidgin -n")
|
2014-06-06 22:22:03 +02:00
|
|
|
xrun("NetworkManager Applet", "nm-applet")
|