mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
start: move start commands to systemd misc-x@.service
This commit is contained in:
parent
db92161900
commit
243de00594
4 changed files with 4 additions and 16 deletions
2
rc.lua
2
rc.lua
|
@ -58,13 +58,11 @@ config.layouts = {
|
|||
awful.layout.suit.floating,
|
||||
}
|
||||
config.hostname = awful.util.pread('uname -n'):gsub('\n', '')
|
||||
config.browser = "firefox"
|
||||
|
||||
-- Remaining modules
|
||||
loadrc("appearance") -- theme and appearance settings
|
||||
loadrc("debug") -- debugging primitive `dbg()`
|
||||
|
||||
loadrc("start") -- programs to run on start
|
||||
loadrc("bindings") -- keybindings
|
||||
loadrc("wallpaper") -- wallpaper settings
|
||||
loadrc("widgets") -- widgets configuration
|
||||
|
|
13
rc/start.lua
13
rc/start.lua
|
@ -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, ";"))
|
|
@ -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 = {
|
||||
|
|
|
@ -5,5 +5,8 @@ PartOf=graphical-session@%i.target
|
|||
[Service]
|
||||
Environment=DISPLAY=%I
|
||||
ExecStart=/usr/bin/xset -b
|
||||
ExecStart=/usr/bin/xdg-mime default firefox.desktop x-scheme-handler/http x-scheme-handler/https text/html
|
||||
ExecStart=/usr/bin/xdg-mime default org.gnome.Evince.desktop application/pdf
|
||||
ExecStart=/usr/bin/xdg-mime default gpicview.desktop image/png image/jpeg image/jpg image/gif image/webp
|
||||
Type=oneshot
|
||||
RemainAfterExit=false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue