Move action-manager and battery-monitor to a systemd service

master
Lars Vierbergen 6 years ago
parent 9933ce5dbd
commit 6896dfa7ad
  1. 9
      xmonad-session-rc
  2. 1
      xmonad.hs

@ -8,7 +8,6 @@ mate-session-daemon
trayer --edge bottom --align right --SetDockType true --SetPartialStrut true --expand true --width 10 --transparent true --tint 0x000000 --alpha 0 --height 17 --monitor primary& trayer --edge bottom --align right --SetDockType true --SetPartialStrut true --expand true --width 10 --transparent true --tint 0x000000 --alpha 0 --height 17 --monitor primary&
xscreensaver -no-splash& xscreensaver -no-splash&
nm-applet --sm-disable& nm-applet --sm-disable&
~/.xmonad/action-manager/start.sh ~/.xmonad/actiondisplay ~/.xmonad/actioncontrol --state-file ~/.xmonad/actionstate --redshift-location 51:5 --redshift-temperature 6000:2000 --screenlayout-dir ~/.screenlayout --screenlayout-default standalone.sh&
# Fix for java applications # Fix for java applications
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
@ -21,20 +20,24 @@ export MOZ_USE_XINPUT2=1
# Import environment in systemd # Import environment in systemd
systemctl --user import-environment PATH systemctl --user import-environment PATH
systemctl --user import-environment DISPLAY
dbus-update-activation-environment --systemd SSH_AUTH_SOCK dbus-update-activation-environment --systemd SSH_AUTH_SOCK
# Restart tl auto suspend to have the correct path # Restart tl auto suspend to have the correct path
systemctl --user restart tl-auto-suspend.service systemctl --user restart tl-auto-suspend.service
systemctl --user restart battery-monitor.service
systemctl --user restart action-manager.service
# Remove _NET_WORKAREA to fix some apps # Remove _NET_WORKAREA to fix some apps
# https://github.com/xmonad/xmonad/issues/42#issuecomment-243422400 # https://github.com/xmonad/xmonad/issues/42#issuecomment-243422400
xprop -root -remove _NET_WORKAREA sh -c 'while true; do xprop -root -remove _NET_WORKAREA; sleep 1; done'&
# Auto-start applications # Auto-start applications
bash ~/.xmonad/battery-monitor.sh&
gajim& gajim&
keepass2 ~/Nextcloud/passwords.kdbx& keepass2 ~/Nextcloud/passwords.kdbx&
thunderbird& thunderbird&
mate-terminal -e ssh-add ~/.ssh/id_rsa& mate-terminal -e ssh-add ~/.ssh/id_rsa&
dropbox start& dropbox start&
nextcloud& nextcloud&
slack&

@ -48,6 +48,7 @@ workspaceManageHook = composeAll [
className =? "Firefox" --> doShift "1:web" className =? "Firefox" --> doShift "1:web"
,className =? "Thunderbird" --> doShift "2:com" ,className =? "Thunderbird" --> doShift "2:com"
,className =? "Gajim" --> doShift "2:com" ,className =? "Gajim" --> doShift "2:com"
,className =? "slack" --> doShift "2:com"
,className =? "KeePass2" --> doShift "9:div" ,className =? "KeePass2" --> doShift "9:div"
,className =? "rhythmbox" --> doShift "8:media" ,className =? "rhythmbox" --> doShift "8:media"
,className =? "vlc" --> doShift "8:media" ,className =? "vlc" --> doShift "8:media"

Loading…
Cancel
Save