mirror of
https://github.com/tomru/hlwm-config.git
synced 2026-03-03 06:27:20 +01:00
fix hc alias - add bapyrus
This commit is contained in:
97
bindings.sh
97
bindings.sh
@@ -1,80 +1,77 @@
|
||||
#!/bin/sh
|
||||
|
||||
hc=herbstclient
|
||||
|
||||
$hc keyunbind --all
|
||||
#!/bin/bash
|
||||
herbstclient keyunbind --all
|
||||
|
||||
# keybindings
|
||||
Mod=Mod4
|
||||
$hc keybind $Mod-Control-q quit
|
||||
$hc keybind $Mod-Shift-q close
|
||||
$hc keybind $Mod-Shift-r reload
|
||||
herbstclient keybind $Mod-Control-q quit
|
||||
herbstclient keybind $Mod-Shift-q close
|
||||
herbstclient keybind $Mod-Shift-r reload
|
||||
|
||||
# tags
|
||||
TAG_NAMES=( {1..9} 0 )
|
||||
TAG_KEYS=( {1..9} 0 )
|
||||
|
||||
$hc rename default "${TAG_NAMES[0]}" || true
|
||||
herbstclient rename default "${TAG_NAMES[0]}" || true
|
||||
for i in ${!TAG_NAMES[@]} ; do
|
||||
$hc add "${TAG_NAMES[$i]}"
|
||||
herbstclient add "${TAG_NAMES[$i]}"
|
||||
key="${TAG_KEYS[$i]}"
|
||||
if ! [ -z "$key" ] ; then
|
||||
$hc keybind "$Mod-$key" use_index "$i"
|
||||
$hc keybind "$Mod-Shift-$key" move_index "$i"
|
||||
herbstclient keybind "$Mod-$key" use_index "$i"
|
||||
herbstclient keybind "$Mod-Shift-$key" move_index "$i"
|
||||
fi
|
||||
done
|
||||
|
||||
# cycle through tags
|
||||
$hc keybind $Mod-period use_index +1 --skip-visible
|
||||
$hc keybind $Mod-comma use_index -1 --skip-visible
|
||||
$hc keybind $Mod-Right use_index +1 --skip-visible
|
||||
$hc keybind $Mod-Left use_index -1 --skip-visible
|
||||
$hc keybind $Mod-minus use_previous
|
||||
herbstclient keybind $Mod-period use_index +1 --skip-visible
|
||||
herbstclient keybind $Mod-comma use_index -1 --skip-visible
|
||||
herbstclient keybind $Mod-Right use_index +1 --skip-visible
|
||||
herbstclient keybind $Mod-Left use_index -1 --skip-visible
|
||||
herbstclient keybind $Mod-minus use_previous
|
||||
|
||||
# layouting
|
||||
$hc keybind $Mod-r remove
|
||||
herbstclient keybind $Mod-r remove
|
||||
|
||||
$hc keybind $Mod-space cycle_layout 1
|
||||
herbstclient keybind $Mod-space cycle_layout 1
|
||||
|
||||
$hc keybind $Mod-e split explode
|
||||
herbstclient keybind $Mod-e split explode
|
||||
|
||||
$hc keybind $Mod-u split vertical 0.5
|
||||
$hc keybind $Mod-Shift-u split vertical 0.66
|
||||
herbstclient keybind $Mod-u split vertical 0.5
|
||||
herbstclient keybind $Mod-Shift-u split vertical 0.66
|
||||
|
||||
$hc keybind $Mod-o split horizontal 0.5
|
||||
$hc keybind $Mod-Shift-o split horizontal 0.666
|
||||
herbstclient keybind $Mod-o split horizontal 0.5
|
||||
herbstclient keybind $Mod-Shift-o split horizontal 0.666
|
||||
|
||||
$hc keybind $Mod-s floating toggle
|
||||
$hc keybind $Mod-f fullscreen toggle
|
||||
$hc keybind $Mod-p pseudotile toggle
|
||||
herbstclient keybind $Mod-s floating toggle
|
||||
herbstclient keybind $Mod-f fullscreen toggle
|
||||
herbstclient keybind $Mod-p pseudotile toggle
|
||||
|
||||
# resizing
|
||||
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
|
||||
herbstclient keybind $Mod-Control-h resize left +$RESIZESTEP
|
||||
herbstclient keybind $Mod-Control-j resize down +$RESIZESTEP
|
||||
herbstclient keybind $Mod-Control-k resize up +$RESIZESTEP
|
||||
herbstclient keybind $Mod-Control-l resize right +$RESIZESTEP
|
||||
|
||||
# mouse in floating mode
|
||||
$hc mouseunbind --all
|
||||
$hc mousebind $Mod-Button1 move
|
||||
$hc mousebind $Mod-Button2 zoom
|
||||
$hc mousebind $Mod-Button3 resize
|
||||
herbstclient mouseunbind --all
|
||||
herbstclient mousebind $Mod-Button1 move
|
||||
herbstclient mousebind $Mod-Button2 zoom
|
||||
herbstclient mousebind $Mod-Button3 resize
|
||||
|
||||
# focus
|
||||
$hc set focus_follows_mouse 1
|
||||
$hc rule focus=on
|
||||
$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-h focus left
|
||||
$hc keybind $Mod-j focus down
|
||||
$hc keybind $Mod-k focus up
|
||||
$hc keybind $Mod-l focus right
|
||||
$hc keybind $Mod-i jumpto urgent
|
||||
$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
|
||||
herbstclient set focus_follows_mouse 1
|
||||
herbstclient rule focus=on
|
||||
herbstclient keybind $Mod-BackSpace cycle_monitor
|
||||
herbstclient keybind $Mod-Tab cycle_all +1
|
||||
herbstclient keybind $Mod-Shift-Tab cycle_all -1
|
||||
herbstclient keybind $Mod-c cycle
|
||||
herbstclient keybind $Mod-h focus left
|
||||
herbstclient keybind $Mod-j focus down
|
||||
herbstclient keybind $Mod-k focus up
|
||||
herbstclient keybind $Mod-l focus right
|
||||
herbstclient keybind $Mod-i jumpto urgent
|
||||
herbstclient keybind $Mod-Shift-h shift left
|
||||
herbstclient keybind $Mod-Shift-j shift down
|
||||
herbstclient keybind $Mod-Shift-k shift up
|
||||
herbstclient keybind $Mod-Shift-l shift right
|
||||
|
||||
|
||||
Reference in New Issue
Block a user