]> git.siccegge.de Git - dotfiles/herbstluftwm.git/blobdiff - autostart
Start urxvtd early
[dotfiles/herbstluftwm.git] / autostart
index cd00909667d06e705f5bab67e03cf7cb61b243ca..77b0d076cccb7e2f79e74d01dbd1baf3be588c59 100755 (executable)
--- a/autostart
+++ b/autostart
@@ -10,6 +10,12 @@ function hc() {
     herbstclient "$@"
 }
 
+spawn_with_rules() {(
+    herbstclient rule once maxage=10 "${RULES[@]}"
+    exec "$@"
+    ) &
+}
+
 Mod=Mod4
 
 # tags
@@ -19,6 +25,7 @@ for i in {0..9} ; do
     hc keybind "$Mod-$i" use "$i"
     hc keybind "$Mod-Shift-$i" move "$i"
 done
+hc add scratchpad
 
 case "$(hostname)" in
        hepworth)
@@ -32,6 +39,7 @@ case "$(hostname)" in
                ;;
 esac
 
+urxvtd -q -o -f
 compton &!
 redshift -l 49.598:11.003 &!
 (sleep 5 ; lxpanel) &!
@@ -121,3 +129,5 @@ xfsettingsd &!
 source .config/herbstluftwm/wallpaper.sh
 set_wallpaper
 
+RULES=( instance=ncmpcpp tag=scratchpad focus=off )
+spawn_with_rules urxvtcd -name ncmpcpp -e ncmpcpp