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
|
ExecStop=/usr/bin/pkill copyq
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical.target
|
WantedBy=wm.target
|
||||||
|
@ -3,8 +3,9 @@ Description=KeePassX
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
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
|
ExecStop=/usr/bin/pkill keepassx
|
||||||
|
RemainAfterExit=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical.target
|
WantedBy=wm.target
|
||||||
|
@ -7,4 +7,4 @@ ExecStart=/usr/bin/nm-applet --sm-disable
|
|||||||
ExecStop=/usr/bin/pkill nm-applet
|
ExecStop=/usr/bin/pkill nm-applet
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical.target
|
WantedBy=wm.target
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=ScreenCloud
|
Description=ScreenCloud
|
||||||
|
After=taffybar.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
@ -7,4 +8,4 @@ ExecStart=/usr/bin/screencloud
|
|||||||
ExecStop=/usr/bin/pkill screencloud
|
ExecStop=/usr/bin/pkill screencloud
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical.target
|
WantedBy=wm.target
|
||||||
|
@ -7,4 +7,4 @@ ExecStop=/usr/bin/sparkleshare stop
|
|||||||
Type=forking
|
Type=forking
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical.target
|
WantedBy=wm.target
|
||||||
|
@ -6,4 +6,4 @@ ExecStart=/usr/bin/udiskie --tray
|
|||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[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
|
. mkToggle (MIRROR ?? EOT) $ layouts
|
||||||
|
|
||||||
myStartup = do
|
myStartup = do
|
||||||
spawn "taffybar"
|
spawn "systemctl --user isolate wm.target"
|
||||||
spawn "xsetroot -solid black"
|
spawn "xsetroot -solid black"
|
||||||
-- TODO: Figure out how to set different backgrounds for different x
|
-- TODO: Figure out how to set different backgrounds for different x
|
||||||
-- monitors
|
-- monitors
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
# -*- mode: sh; -*-
|
# -*- mode: sh; -*-
|
||||||
source "$HOME/.lib/shellenv.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