dotfiles/.config/herbstluftwm/keybinds

90 lines
2.9 KiB
Bash
Executable File

#!/bin/sh
Mod=Mod4
hc keyunbind --all
hc keybind $Mod-Shift-q spawn herbstclient quit
hc keybind $Mod-Shift-r reload
hc keybind $Mod-Shift-c close_or_remove
hc keybind $Mod-q close_or_remove
hc keybind $Mod-Return spawn "${TERMINAL} -d ~"
hc keybind $Mod-space spawn "${MENU}"
hc keybind Print spawn screenshot
hc keybind Shift-Print spawn selscreen
hc keybind $Mod-Left focus left
hc keybind $Mod-Down focus down
hc keybind $Mod-Up focus up
hc keybind $Mod-Right focus right
hc keybind $Mod-h focus left
hc keybind $Mod-j focus down
hc keybind $Mod-k focus up
hc keybind $Mod-l focus right
hc keybind $Mod-Shift-Left shift left
hc keybind $Mod-Shift-Down shift down
hc keybind $Mod-Shift-Up shift up
hc keybind $Mod-Shift-Right shift right
hc keybind $Mod-Shift-h shift left
hc keybind $Mod-Shift-j shift down
hc keybind $Mod-Shift-k shift up
hc keybind $Mod-Shift-l shift right
hc keybind $Mod-Shift-BackSpace shift_to_monitor +1
hc keybind $Mod-u split bottom 0.5
hc keybind $Mod-o split right 0.5
hc keybind $Mod-Control-Space split explode
resizestep=0.02
hc keybind $Mod-Control-h resize left +$resizestep
hc keybind $Mod-Control-j resize down +$resizestep
hc keybind $Mod-Control-k resize up +$resizestep
hc keybind $Mod-Control-l resize right +$resizestep
hc keybind $Mod-Control-Left resize left +$resizestep
hc keybind $Mod-Control-Down resize down +$resizestep
hc keybind $Mod-Control-Up resize up +$resizestep
hc keybind $Mod-Control-Right resize right +$resizestep
hc keybind XF86AudioMute chain '->' spawn vol toggle '->' emit_hook volume_changed
hc keybind XF86AudioLowerVolume chain '->' spawn vol down '->' emit_hook volume_changed
hc keybind XF86AudioRaiseVolume chain '->' spawn vol up '->' emit_hook volume_changed
hc keybind XF86MonBrightnessDown spawn br down
hc keybind XF86MonBrightnessUp spawn br up
hc rename default "1"
for i in $(seq 1 9); do
hc add "$i"
num="$(expr $i - 1)"
hc keybind "$Mod-$i" use_index "$num"
hc keybind "$Mod-Shift-$i" move_index "$num"
done
hc add "PIN"
hc keybind "$Mod-Control-Shift-p" move "PIN"
hc keybind $Mod-period use_index +1 --skip-visible
hc keybind $Mod-comma use_index -1 --skip-visible
hc keybind $Mod-r remove
hc keybind $Mod-s floating toggle
hc keybind $Mod-f fullscreen toggle
hc keybind $Mod-Shift-f set_attr clients.focus.floating toggle
hc keybind $Mod-p pseudotile toggle
hc mouseunbind --all
hc mousebind $Mod-Button1 move
hc mousebind $Mod-Button2 zoom
hc mousebind $Mod-Button3 resize
hc keybind $Mod-BackSpace cycle_monitor
hc keybind $Mod-Tab cycle_all +1
hc keybind $Mod-Shift-Tab cycle_all -1
hc keybind $Mod-c cycle
hc keybind $Mod-i jumpto urgent
hc keybind $Mod-slash cycle_layout +1