start: move start commands to systemd misc-x@.service

This commit is contained in:
Vincent Bernat 2020-01-26 09:07:20 +01:00
parent db92161900
commit 243de00594
4 changed files with 4 additions and 16 deletions

View file

@ -1,13 +0,0 @@
-- 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, ";"))

View file

@ -17,7 +17,7 @@ shifty.config.tags = {
exclusive = true,
max_clients = 1,
screen = math.min(screen.count(), 2),
spawn = config.browser,
spawn = "firefox",
icon = tagicon("web")
},
emacs = {