aboutsummaryrefslogtreecommitdiff
path: root/.config/herbstluftwm/autostart
diff options
context:
space:
mode:
Diffstat (limited to '.config/herbstluftwm/autostart')
-rwxr-xr-x.config/herbstluftwm/autostart70
1 files changed, 24 insertions, 46 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
index 5bcf1d8..df3eb3b 100755
--- a/.config/herbstluftwm/autostart
+++ b/.config/herbstluftwm/autostart
@@ -17,7 +17,7 @@ hc keyunbind --all
Mod=Mod4 # Use the super key as the main modifier
hc keybind $Mod-Shift-x quit
-hc keybind $Mod-r reload
+hc keybind $Mod-Shift-r reload
hc keybind $Mod-x close
# basic movement in tiling and floating mode
@@ -48,8 +48,8 @@ hc keybind $Mod-Alt-k resize up +$resizestep
hc keybind $Mod-Alt-l resize right +$resizestep
# tags
-tag_names=( work social web mail fun media vms 8 9 )
-tag_keys=( {2..9} 0 )
+tag_names=( work social web mail fun media vms scratch )
+tag_keys=( {2..9} )
hc rename default "${tag_names[0]}" || true
for i in "${!tag_names[@]}" ; do
@@ -88,8 +88,8 @@ hc mousebind $Mod-Button3 resize
# focus
hc set focus_follows_mouse 1
-hc keybind $Mod-Control+j cycle_monitor -1
-hc keybind $Mod-Control+k cycle_monitor +1
+hc keybind $Mod-Control+j cycle_monitor +1
+hc keybind $Mod-Control+k cycle_monitor -1
hc keybind $Mod-Tab cycle_all +1
hc keybind $Mod-Shift-Tab cycle_all -1
hc keybind $Mod-c cycle
@@ -131,18 +131,31 @@ hc set mouse_recenter_gap 0
# rules
hc unrule -F
-#hc rule class=XTerm tag=3 # move all xterms to tag 3
+
hc rule focus=on # normally focus new clients
hc rule floatplacement=smart
-#hc rule focus=off # normally do not focus new clients
-# give focus to most common terminals
-#hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
+
+# Tag rules
+hc rule class='signal' tag=social
+hc rule class='mumble' tag=social
+
+hc rule class='qutebrowser' tag=www
+hc rule class='chromium' tag=www
+
+hc rule class='thunderbird' tag=mail
+
+hc rule class='mpv' tag=media
+
+# KDE rules
+hc rule class='krunner' floating=on floatplacement=center
+hc rule class='plasmashell' floating=on
+
+# Regular rules
+hc rule class='pinentry' floating=on floatplacement=center
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
-hc rule class="wow.exe" tag=5 floating=on
-
hc set tree_style '╾│ ├└╼─┐'
# unlock, just to be sure
@@ -152,38 +165,3 @@ hc unlock
# hc set_monitors 1280x1024+0+0 1280x1024+1280+0
# or simply:
hc detect_monitors
-
-# Handle panels
-panel_top=~/.config/herbstluftwm/panel-top.sh
-[ -x "$panel_top" ] || panel_top=/etc/xdg/herbstluftwm/panel.sh
-
-panel_bot=~/.config/herbstluftwm/panel-bot.sh
-
-for monitor in $(hc list_monitors | cut -d: -f1) ; do
- # Create space for the panels to exist
- hc pad "$monitor" 21 0 21 0
-
- # Start panels
- "$panel_top" "$monitor" &
- "$panel_bot" "$monitor" &
-done
-
-# Handle tray
-if command -v stalonetray > /dev/null
-then
- tray_monitor_offset=$(hc monitor_rect 0 | awk '{ print $1 }')
- tray_monitor_width=$(hc monitor_rect 0 | awk '{ print $3 }')
- tray_date_offset=$(xftwidth "Liberation Mono:size=9" "$(date +"%F %H:%M")")
- tray_offset_x=$(( tray_monitor_offset + tray_monitor_width - tray_date_offset - 40 ))
-
- stalonetray \
- --grow-gravity E \
- --icon-size 16 \
- --parent-bg \
- --config /dev/null \
- --skip-taskbar \
- --sticky \
- --geometry "1x1+$tray_offset_x+2" \
- --kludges fix_window_pos \
- &
-fi