[Linux] Use wm.target for starting graphical apps

This commit is contained in:
Ivan Malison 2016-09-26 12:55:30 -07:00
parent 3a2b7fe4b1
commit aa88e8bda9
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
11 changed files with 23 additions and 10 deletions

View File

@ -7,4 +7,4 @@ ExecStart=/usr/bin/copyq
ExecStop=/usr/bin/pkill copyq
[Install]
WantedBy=graphical.target
WantedBy=wm.target

View File

@ -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

View File

@ -7,4 +7,4 @@ ExecStart=/usr/bin/nm-applet --sm-disable
ExecStop=/usr/bin/pkill nm-applet
[Install]
WantedBy=graphical.target
WantedBy=wm.target

View File

@ -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

View File

@ -7,4 +7,4 @@ ExecStop=/usr/bin/sparkleshare stop
Type=forking
[Install]
WantedBy=graphical.target
WantedBy=wm.target

View File

@ -6,4 +6,4 @@ ExecStart=/usr/bin/udiskie --tray
Restart=always
[Install]
WantedBy=default.target
WantedBy=wm.target

View File

@ -0,0 +1,3 @@
[Unit]
Description=Window Manager
AllowIsolate=yes

View File

@ -0,0 +1,9 @@
[Unit]
Description=X Settings Daemon
[Service]
ExecStart=/usr/bin/xsettingsd
ExecStop=/usr/bin/pkill xsettingsd
[Install]
WantedBy=wm.target

View File

@ -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

View File

@ -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
View File

@ -0,0 +1 @@
Gtk/KeyThemeName "Emacs"