commit 758938a4d9769a7c75f112a3dcf0c3bfe5631621 parent db2dfab610f0defb859d6545808d8b037376e42e Author: Yuval Langer <yuval.langer@gmail.com> Date: Sun, 8 Oct 2017 11:27:32 +0300 Move startup hook commands into their own bash startup script Diffstat:
M | dotfiles.org | | | 30 | ++++++++++++++++++++++-------- |
1 file changed, 22 insertions(+), 8 deletions(-)
diff --git a/dotfiles.org b/dotfiles.org @@ -542,14 +542,7 @@ A list of all agenda files. myStartupHook :: MonadIO m => m () myStartupHook = do - spawn "keynav" - spawn "setxkbmap -option -option terminate:ctrl_alt_bksp -option grp:caps_toggle us,il" - spawn "sleep 2; redshift" - spawn "sleep 5; nm-applet" - spawn "sleep 5; xfce4-power-manager" - spawn "sleep 5; xfce4-volumed" - spawn "trayer" - spawn "xmobar" + spawn "~/bin/xmonadstartup" myLayoutHook :: ModifiedLayout AvoidStruts (Choose Tall (Choose (Mirror Tall) Full)) Window myLayoutHook = avoidStruts $ layoutHook defaultConfig @@ -586,6 +579,27 @@ A list of all agenda files. } `additionalKeys` myAdditionalKeys #+end_src +**** xmonad startup script + +#+begin_src sh :tangle ~/bin/xmonadstartup :tangle-mode '#o700' + #!/usr/bin/env bash + + keynav & + setxkbmap -option -option terminate:ctrl_alt_bksp -option grp:caps_toggle us,il & + redshift & + nm-applet & + xfce4-power-manager & + xfce4-volumed & + trayer & + xmobar & + if [ -f "$HOME/.local/bin/arbtt-capture" ]; + then + "$HOME/.local/bin/arbtt-capture" & + else + arbtt-capture & + fi +#+end_src + *** redshift #+begin_src conf :tangle ~/.config/redshift.conf :comments no