X-Git-Url: https://git.siccegge.de//index.cgi?p=dotfiles%2Fherbstluftwm.git;a=blobdiff_plain;f=autostart;h=800e12fba1adba02c473b956bc7ea0cb990bf1fc;hp=01924d4478eef9ab994b900f5a0ca4026b0fcfc7;hb=HEAD;hpb=b67bbf688b2e4864851153161e708c2799f258a5 diff --git a/autostart b/autostart index 01924d4..800e12f 100755 --- a/autostart +++ b/autostart @@ -6,27 +6,52 @@ VISUAL="emacsclient -c -a ''" export PATH export VISUAL -# this is a simple config for herbstluftwm - -xrandr --output VGA-0 --auto -xrandr --output HDMI-0 --left-of VGA-0 --auto - -function hc() { +hc() { herbstclient "$@" } -hc setenv PATH $PATH +spawn_with_rules() {( + herbstclient rule once maxage=10 "${RULES[@]}" + exec "$@" + ) & +} + +Mod=Mod4 + +# tags +hc rename default 1 || true +for i in {0..9} ; do + hc add "$i" + hc keybind "$Mod-$i" use "$i" + hc keybind "$Mod-Shift-$i" move "$i" +done +hc add scratchpad + +case "$(hostname)" in + hepworth) + xrandr --output VGA-0 --auto + xrandr --output HDMI-0 --left-of VGA-0 --auto + hc detect_monitors + hc pad 1 16 0 0 0 + ;; + mitoraj) + hc pad 0 16 0 0 0 + ;; +esac + +urxvtd -q -o -f +compton &! +redshift -l 49.598:11.003 &! +(sleep 5 ; lxpanel) &! -hc detect_monitors +hc setenv PATH $PATH +hc setenv VDPAU_DRIVER vdpau source .config/herbstluftwm/wallpaper.sh set_wallpaper -xset -b - # keybindings -Mod=Mod4 -#hc keybind $Mod-q quiti +hc keybind $Mod-q quit hc keybind $Mod-Shift-r reload hc keybind $Mod-Shift-c close hc keybind $Mod-Return spawn urxvtcd @@ -34,18 +59,12 @@ hc keybind $Mod-Return spawn urxvtcd hc keybind $Mod-p spawn dmenu_run hc keybind $Mod-u spawn /home/christoph/bin/utf8select hc keybind $Mod-w spawn /home/christoph/bin/windowselect -hc keybind $Mod-x spawn slock +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 - -# tags -hc rename default 1 || true -for i in {0..9} ; do - hc add "$i" - hc keybind "$Mod-$i" use "$i" - hc keybind "$Mod-Shift-$i" move "$i" -done +hc keybind XF86AudioPlay spawn mpc toggle # layouting hc keybind $Mod-r remove @@ -84,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' @@ -99,18 +117,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 -hc setenv VDPAU_DRIVER radeonsi +RULES=( instance=ncmpcpp tag=scratchpad focus=off ) +spawn_with_rules urxvtcd -name ncmpcpp -e ncmpcpp