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,
|
awful.layout.suit.floating,
|
||||||
}
|
}
|
||||||
config.hostname = awful.util.pread('uname -n'):gsub('\n', '')
|
config.hostname = awful.util.pread('uname -n'):gsub('\n', '')
|
||||||
config.browser = "firefox"
|
|
||||||
|
|
||||||
-- Remaining modules
|
-- Remaining modules
|
||||||
loadrc("appearance") -- theme and appearance settings
|
loadrc("appearance") -- theme and appearance settings
|
||||||
loadrc("debug") -- debugging primitive `dbg()`
|
loadrc("debug") -- debugging primitive `dbg()`
|
||||||
|
|
||||||
loadrc("start") -- programs to run on start
|
|
||||||
loadrc("bindings") -- keybindings
|
loadrc("bindings") -- keybindings
|
||||||
loadrc("wallpaper") -- wallpaper settings
|
loadrc("wallpaper") -- wallpaper settings
|
||||||
loadrc("widgets") -- widgets configuration
|
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,
|
exclusive = true,
|
||||||
max_clients = 1,
|
max_clients = 1,
|
||||||
screen = math.min(screen.count(), 2),
|
screen = math.min(screen.count(), 2),
|
||||||
spawn = config.browser,
|
spawn = "firefox",
|
||||||
icon = tagicon("web")
|
icon = tagicon("web")
|
||||||
},
|
},
|
||||||
emacs = {
|
emacs = {
|
||||||
|
|
|
@ -5,5 +5,8 @@ PartOf=graphical-session@%i.target
|
||||||
[Service]
|
[Service]
|
||||||
Environment=DISPLAY=%I
|
Environment=DISPLAY=%I
|
||||||
ExecStart=/usr/bin/xset -b
|
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
|
Type=oneshot
|
||||||
RemainAfterExit=false
|
RemainAfterExit=false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue