forked from colonelpanic/dotfiles
[Linux] Use wm.target for starting graphical apps
This commit is contained in:
parent
3a2b7fe4b1
commit
aa88e8bda9
@ -7,4 +7,4 @@ ExecStart=/usr/bin/copyq
|
||||
ExecStop=/usr/bin/pkill copyq
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
WantedBy=wm.target
|
||||
|
@ -3,8 +3,9 @@ Description=KeePassX
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/zsh -c "start_keepass.sh"
|
||||
ExecStart=/usr/bin/zsh -c 'keepassx --keyfile "$HOME/SparkleShare/config/creds/keepass.key" "$HOME/SparkleShare/config/db.kdbx" &'
|
||||
ExecStop=/usr/bin/pkill keepassx
|
||||
RemainAfterExit=true
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
WantedBy=wm.target
|
||||
|
@ -7,4 +7,4 @@ ExecStart=/usr/bin/nm-applet --sm-disable
|
||||
ExecStop=/usr/bin/pkill nm-applet
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
WantedBy=wm.target
|
||||
|
@ -1,5 +1,6 @@
|
||||
[Unit]
|
||||
Description=ScreenCloud
|
||||
After=taffybar.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@ -7,4 +8,4 @@ ExecStart=/usr/bin/screencloud
|
||||
ExecStop=/usr/bin/pkill screencloud
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
WantedBy=wm.target
|
||||
|
@ -7,4 +7,4 @@ ExecStop=/usr/bin/sparkleshare stop
|
||||
Type=forking
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
WantedBy=wm.target
|
||||
|
@ -6,4 +6,4 @@ ExecStart=/usr/bin/udiskie --tray
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
WantedBy=wm.target
|
||||
|
3
dotfiles/config/systemd/user/wm.target
Normal file
3
dotfiles/config/systemd/user/wm.target
Normal file
@ -0,0 +1,3 @@
|
||||
[Unit]
|
||||
Description=Window Manager
|
||||
AllowIsolate=yes
|
9
dotfiles/config/systemd/user/xsettingsd.service
Normal file
9
dotfiles/config/systemd/user/xsettingsd.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=X Settings Daemon
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/xsettingsd
|
||||
ExecStop=/usr/bin/pkill xsettingsd
|
||||
|
||||
[Install]
|
||||
WantedBy=wm.target
|
@ -54,7 +54,7 @@ myLayoutHook = avoidStruts . smartSpacing 10 . noBorders
|
||||
. mkToggle (MIRROR ?? EOT) $ layouts
|
||||
|
||||
myStartup = do
|
||||
spawn "taffybar"
|
||||
spawn "systemctl --user isolate wm.target"
|
||||
spawn "xsetroot -solid black"
|
||||
-- TODO: Figure out how to set different backgrounds for different x
|
||||
-- monitors
|
||||
|
@ -1,4 +1,2 @@
|
||||
# -*- mode: sh; -*-
|
||||
source "$HOME/.lib/shellenv.sh"
|
||||
# XXX: This is here literally only to get emacs keybindings in chrome
|
||||
run_if_exists gnome-settings-daemon &
|
||||
|
1
dotfiles/xsettingsd
Normal file
1
dotfiles/xsettingsd
Normal file
@ -0,0 +1 @@
|
||||
Gtk/KeyThemeName "Emacs"
|
Loading…
Reference in New Issue
Block a user