2012-07-06 14:19:54 +02:00
|
|
|
-- Spawn a composoting manager
|
2014-09-19 15:54:57 +02:00
|
|
|
awful.util.spawn("compton --vsync drm", false)
|
2012-07-06 14:19:54 +02:00
|
|
|
|
|
|
|
-- Start idempotent commands
|
|
|
|
local execute = {
|
2014-09-17 18:33:07 +02:00
|
|
|
"~/.config/awesome/bin/xsettingsd-setup",
|
2012-07-06 14:19:54 +02:00
|
|
|
-- Start PulseAudio
|
|
|
|
"pulseaudio --check || pulseaudio -D",
|
2014-07-20 13:31:56 +02:00
|
|
|
"udisks-glue -p /run/user/$(id -u)/udisks-glue.pid",
|
2012-07-06 14:19:54 +02:00
|
|
|
"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",
|
2014-02-27 09:18:57 +01: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
|
2012-07-13 08:21:57 +02:00
|
|
|
xrun("polkit-gnome-authentication-agent-1",
|
|
|
|
"/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1")
|
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")
|
2012-07-13 08:09:22 +02:00
|
|
|
|
2012-07-13 08:21:57 +02:00
|
|
|
if config.hostname == "neo" then
|
2012-07-13 10:57:53 +02:00
|
|
|
xrun("transmission", "transmission-gtk -m")
|
2012-07-06 14:19:54 +02:00
|
|
|
end
|