vincentbernat.i3wm-configur.../rc/start.lua
Vincent Bernat f8e519691c Revert "start: remove --paint-on-overlay from compton options"
This reverts commit 3eded8cdd4. This mess
with screen configuration.
2017-06-20 09:12:21 +02:00

29 lines
998 B
Lua

-- Spawn a composoting manager
awful.util.spawn("compton --backend glx --xrender-sync --xrender-sync-fence --vsync opengl-swc --paint-on-overlay", false)
-- Start idempotent commands
local execute = {
-- Kill any running nm-applet
"pkill nm-applet",
-- Start PulseAudio
"pulseaudio --check || pulseaudio -D",
"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 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("pidgin", "pidgin -n")
xrun("NetworkManager Applet", "nm-applet")