]> git.siccegge.de Git - dotfiles/herbstluftwm.git/blobdiff - autostart
Semantics-preserving cleanup
[dotfiles/herbstluftwm.git] / autostart
index cd00909667d06e705f5bab67e03cf7cb61b243ca..800e12fba1adba02c473b956bc7ea0cb990bf1fc 100755 (executable)
--- a/autostart
+++ b/autostart
@@ -6,10 +6,16 @@ VISUAL="emacsclient -c -a ''"
 export PATH
 export VISUAL
 
-function hc() {
+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) &!
@@ -54,7 +62,9 @@ hc keybind $Mod-w spawn /home/christoph/bin/windowselect
 hc keybind $Mod-n spawn /home/christoph/bin/q3terminal
 hc keybind $Mod-x spawn i3lock --color 000000 -d
 hc keybind $Mod-t spawn ncmpcpp toggle
-hc keybind $Mod-y spawn passin
+hc keybind $Mod-y spawn /usr/share/doc/pass/examples/dmenu/passmenu --type
+
+hc keybind XF86AudioPlay spawn mpc toggle
 
 # layouting
 hc keybind $Mod-r     remove
@@ -93,7 +103,6 @@ hc keybind XF86AudioRaiseVolume spawn mpc volume +3
 hc keybind XF86AudioLowerVolume spawn mpc volume -3
 hc keybind XF86AudioMute        spawn mpc toggle
 
-
 # colors
 hc set frame_border_active_color '#222222'
 hc set frame_border_normal_color '#101010'
@@ -121,3 +130,5 @@ xfsettingsd &!
 source .config/herbstluftwm/wallpaper.sh
 set_wallpaper
 
+RULES=( instance=ncmpcpp tag=scratchpad focus=off )
+spawn_with_rules urxvtcd -name ncmpcpp -e ncmpcpp