X-Git-Url: https://git.siccegge.de//index.cgi?p=dotfiles%2Fherbstluftwm.git;a=blobdiff_plain;f=autostart;h=879a2082fda55517adb3a2777e40040b3f5e84bc;hp=25a34060bdb5d48b414f265dce1d211c02bfa0b3;hb=60d6761b41059aa012ac80e7173f58826ec9880a;hpb=54908bae704e31bab57bea7eecd02eb178a7bc83 diff --git a/autostart b/autostart index 25a3406..879a208 100755 --- 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) &! @@ -54,7 +62,7 @@ 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 # layouting hc keybind $Mod-r remove @@ -108,17 +116,18 @@ hc set always_show_frame 1 hc set frame_gap 4 hc set frame_bg_transparent 1 -hc rule class=Pinentry focus=on hc rule instance=Dialog class=Iceweasel focus=on hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK)' manage=off -hc rule class=Pinentry focus=on +hc rule class=Pinentry focus=on pseudotile=on xfsettingsd &! source .config/herbstluftwm/wallpaper.sh set_wallpaper +RULES=( instance=ncmpcpp tag=scratchpad focus=off ) +spawn_with_rules urxvtcd -name ncmpcpp -e ncmpcpp