2024-11-05 19:28:07 +00:00
|
|
|
#
|
|
|
|
# wm independent hotkeys
|
|
|
|
#
|
|
|
|
|
|
|
|
# make sxhkd reload its configuration files:
|
2024-11-05 21:35:40 +00:00
|
|
|
super + r
|
2024-11-05 19:28:07 +00:00
|
|
|
pkill -USR1 -x sxhkd
|
|
|
|
|
|
|
|
#
|
|
|
|
# bspwm hotkeys
|
|
|
|
#
|
|
|
|
|
|
|
|
# send the newest marked node to the newest preselected node
|
|
|
|
super + y
|
|
|
|
bspc node newest.marked.local -n newest.!automatic.local
|
|
|
|
|
|
|
|
#
|
|
|
|
# state/flags
|
|
|
|
#
|
|
|
|
|
|
|
|
# set the node flags
|
|
|
|
super + ctrl + {m,x,y,z}
|
|
|
|
bspc node -g {marked,locked,sticky,private}
|
|
|
|
|
|
|
|
## My Custom Keybindings ##
|
|
|
|
|
|
|
|
# Launch Programs
|
|
|
|
|
|
|
|
# dmenu Launcher
|
|
|
|
super + p
|
|
|
|
dmenu_run
|
|
|
|
# Terminal
|
|
|
|
super + Return
|
|
|
|
st
|
|
|
|
# Screenshot
|
2024-11-05 21:35:40 +00:00
|
|
|
super + shift + s
|
|
|
|
scrot -s -e 'xclip -selection clipboard -t image/png -i $f' ~/Pictures/screenshots/%Y-%m-%d-%T-screenshot.png
|
2024-11-05 19:28:07 +00:00
|
|
|
super + ctrl + s
|
2024-11-05 21:35:40 +00:00
|
|
|
scrot -u -e 'xclip -selection clipboard -t image/png -i $f' ~/Pictures/screenshots/%Y-%m-%d-%T-screenshot.png
|
|
|
|
# Screen Lock
|
|
|
|
super + Escape
|
|
|
|
slock
|
|
|
|
|
|
|
|
# scripts
|
|
|
|
super + e
|
|
|
|
dmenu_emoji
|
|
|
|
|
|
|
|
# keymap
|
|
|
|
alt + space
|
|
|
|
setxkbmap il
|
|
|
|
alt + shift + space
|
|
|
|
setxkbmap us
|
2024-11-05 19:28:07 +00:00
|
|
|
|
|
|
|
# Media Controls
|
|
|
|
|
|
|
|
# Mute Audio
|
|
|
|
XF86AudioMute
|
2024-11-05 21:35:40 +00:00
|
|
|
pactl set-sink-mute @DEFAULT_SINK@ toggle
|
2024-11-05 19:28:07 +00:00
|
|
|
# Lower Volume
|
|
|
|
XF86AudioLowerVolume
|
2024-11-05 21:35:40 +00:00
|
|
|
pactl set-sink-volume @DEFAULT_SINK@ -2%
|
2024-11-05 19:28:07 +00:00
|
|
|
# Raise Volume
|
|
|
|
XF86AudioRaiseVolume
|
2024-11-05 21:35:40 +00:00
|
|
|
pactl set-sink-volume @DEFAULT_SINK@ +2%
|
2024-11-05 19:28:07 +00:00
|
|
|
# Play/Pause
|
|
|
|
XF86AudioPlay
|
|
|
|
playerctl play-pause
|
|
|
|
# Stop
|
|
|
|
XF86AudioStop
|
|
|
|
playerctl stop
|
|
|
|
# Next Song
|
|
|
|
XF86AudioNext
|
|
|
|
playerctl next
|
|
|
|
# Previous Song
|
|
|
|
XF86AudioPrev
|
|
|
|
playerctl previous
|
2024-11-05 21:35:40 +00:00
|
|
|
# Brightness Up
|
|
|
|
XF86_MonBrightnessUp
|
|
|
|
brightnessctl set 1%+
|
|
|
|
# Brightness Down
|
|
|
|
XF86_MonBrightnessDown
|
|
|
|
brightnessctl set 1%+
|
2024-11-05 19:28:07 +00:00
|
|
|
|
|
|
|
## BSPWM Controls ##
|
|
|
|
|
|
|
|
# Quit/Restart BSPWM
|
|
|
|
super + shift + {q,r}
|
|
|
|
bspc {quit,wm -r}
|
|
|
|
# Move A Floating Window
|
|
|
|
super + {Left,Down,Up,Right}
|
|
|
|
bspc node -v {-20 0,0 20,0 -20,20 0}
|
|
|
|
# Set Window State
|
|
|
|
super + {t,shift + t,s,f}
|
|
|
|
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
|
|
|
# Close and Kill Window
|
|
|
|
super + x
|
|
|
|
bspc node -{c,k}
|
|
|
|
|
|
|
|
# Resize/Rearrange Windows
|
|
|
|
|
|
|
|
# Move Left and Bottom Sides of a Window for Resizing
|
|
|
|
super + alt + {h,j,k,l}
|
|
|
|
bspc node -z {left -20 0,bottom 0 20,bottom 0 -20,left 20 0}
|
|
|
|
# Move Top and Right Sides of a Window for Resizing
|
|
|
|
super + alt + shift + {h,j,k,l}
|
|
|
|
bspc node -z {right -20 0,top 0 20,top 0 -20,right 20 0}
|
|
|
|
# Swap the Current Node and the Biggest Node
|
|
|
|
super + space
|
|
|
|
bspc node -s biggest
|
|
|
|
# Switch Between Tiled and Fullscreen Layout
|
|
|
|
super + m
|
|
|
|
bspc desktop -l next
|
|
|
|
# Focus/Move the Node in the Given Direction
|
|
|
|
super + {_,shift + }{h,j,k,l}
|
|
|
|
bspc node -{f,s} {west,south,north,east}
|
|
|
|
# Cycle Between Windows in Fullscreen Layout (Also Works in Tiled)
|
|
|
|
super + {_,shift + }c
|
|
|
|
bspc node -f {next,prev}.local
|
|
|
|
|
|
|
|
# Virtual Desktop Controls
|
|
|
|
|
|
|
|
# Change Desktop/Send Window to Desktop
|
|
|
|
super + {_,shift + }{1-9}
|
|
|
|
bspc {desktop -f,node -d} focused:'^{1-9}'
|
|
|
|
# Move to Next/Previous Virtual Desktop
|
|
|
|
super + bracket{left,right}
|
|
|
|
bspc desktop -f {prev,next}.local
|
|
|
|
|
|
|
|
# Manual Tiling Controls
|
|
|
|
|
|
|
|
# Preselect the Direction
|
|
|
|
super + ctrl + {h,j,k,l}
|
|
|
|
bspc node -p {west,south,north,east}
|
|
|
|
# Preselect the Ratio
|
|
|
|
super + ctrl + {1-9}
|
|
|
|
bspc node -o 0.{1-9}
|
|
|
|
# Cancel the Preselection for the Focused Node
|
|
|
|
super + ctrl + space
|
|
|
|
bspc node -p cancel
|
|
|
|
# Cancel the Preselection for the Focused Desktop
|
|
|
|
super + ctrl + shift + space
|
|
|
|
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
|
|
|
|
|
|
|
# Focus of Nodes
|
|
|
|
|
|
|
|
# Focus the Node For the Given Path Jump
|
2024-11-07 15:25:08 +00:00
|
|
|
super + ctrl {p,b,comma,period}
|
2024-11-05 19:28:07 +00:00
|
|
|
bspc node -f @{parent,brother,first,second}
|
|
|
|
# Focus the Last Node/Desktop
|
|
|
|
# super + {grave,Tab}
|
|
|
|
# bspc {node,desktop} -f last
|
|
|
|
# Focus the Older or Newer Node in the Focus History
|
|
|
|
super + {o,i}
|
|
|
|
bspc wm -h off; \
|
|
|
|
bspc node {older,newer} -f; \
|
|
|
|
bspc wm -h on
|
|
|
|
# Switch Focus of Monitors
|
2024-11-07 15:25:08 +00:00
|
|
|
super + {comma,period}
|
2024-11-05 19:28:07 +00:00
|
|
|
bspc monitor --focus {prev,next}
|
|
|
|
# Send Window to other monitor
|
2024-12-03 20:23:25 +00:00
|
|
|
super + shift + {comma,period}
|
2024-11-05 19:28:07 +00:00
|
|
|
bspc node -m {prev,next} --follow
|
|
|
|
|
|
|
|
# gaps
|
|
|
|
super + equal
|
|
|
|
gap=$(bspc query --tree --monitor | jq '.windowGap'); new_gap=$(( $gap + 5 )); bspc config window_gap ${new_gap}
|
|
|
|
|
|
|
|
super + minus
|
|
|
|
gap=$(bspc query --tree --monitor | jq '.windowGap'); new_gap=$(( $gap - 5 )); bspc config window_gap ${new_gap}
|
|
|
|
|
|
|
|
super + plus
|
|
|
|
bspc config window_gap 0
|