[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 ExecStop=/usr/bin/pkill copyq
[Install] [Install]
WantedBy=graphical.target WantedBy=wm.target

View File

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

View File

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

View File

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

View File

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

View File

@ -6,4 +6,4 @@ ExecStart=/usr/bin/udiskie --tray
Restart=always Restart=always
[Install] [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 . 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

View File

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

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