175 lines
3.6 KiB
Plaintext
175 lines
3.6 KiB
Plaintext
# Originally created by - https://github.com/gh0stzk
|
|
|
|
#|||----- Applications -----|||#
|
|
|
|
# Open Terminal (alacritty)
|
|
super + Return
|
|
openapp --terminal
|
|
|
|
# Open floating Terminal
|
|
super + alt + Return
|
|
openapp --floating
|
|
|
|
# Menu applications
|
|
super + F1
|
|
openapp --menu
|
|
|
|
#####
|
|
|
|
# Apps (browser, editor, filemanager, music, and updater)
|
|
shift + alt + {b,v,f,k,u}
|
|
openapp {--browser,--nvim,--ranger, --music, --update}
|
|
|
|
|
|
#|||----- System Keybindings -----|||#
|
|
|
|
# Show keybindings help
|
|
alt + F1
|
|
keybindingshelp
|
|
|
|
# jgmenu
|
|
~button3
|
|
xqp 0 $(xdo id -N Bspwm -n root) && jgmenu --csv-file=~/.config/jgmenu/menu.csv --config-file=~/.config/jgmenu/jgmenurc
|
|
|
|
# Scratchpad
|
|
super + alt + o
|
|
tdrop -a -w 70% -h 35% -y 0 -x 15% --class scratch alacritty --class=scratch
|
|
|
|
# Power off, Reboot, Log out, Lockscreen, kill an app
|
|
ctrl + super + alt + {p,r,q,l,k}
|
|
{systemctl poweroff, systemctl reboot,bspc quit,physlock -d,xkill}
|
|
|
|
# Hide/Show Bar
|
|
super + {h,u}
|
|
hidebar {-h,-u}
|
|
|
|
# Change transparency on focused window
|
|
ctrl + alt + {plus,minus,t}
|
|
picom-trans {-c -o +3,-c -o -1,-c -d}
|
|
|
|
# Random wallpaper
|
|
super + alt + w
|
|
feh -z --no-fehbg --bg-fill ~/pics/wallpapers/
|
|
|
|
# Screenshot Now
|
|
Print
|
|
screenshoter --now
|
|
|
|
# Screenshot Select
|
|
ctrl + Print
|
|
screenshoter --sel
|
|
|
|
# Screenshot in 10s
|
|
alt + Print
|
|
screenshoter --in10
|
|
|
|
# Screenshot active window
|
|
shift + Print
|
|
screenshoter --active
|
|
|
|
# Manage brightness
|
|
XF86MonBrightness{Up,Down}
|
|
sh brightness {up,down}
|
|
|
|
# Volume control
|
|
XF86Audio{RaiseVolume,LowerVolume,Mute}
|
|
volume{ --inc, --dec, --toggle}
|
|
|
|
# Music Control
|
|
XF86Audio{Next,Prev,Play,Stop}
|
|
mediacontrol {--next,--previous,--toggle,--stop}
|
|
|
|
|
|
#|||----- Bspwm hotkeys -----|||#
|
|
|
|
# Reload BSPWM
|
|
super + alt + r
|
|
bspc wm -r
|
|
|
|
# close and kill
|
|
super + {_,shift + }q
|
|
bspc node -{c,k}
|
|
|
|
# Reload Keybindings
|
|
super + Escape
|
|
pkill -USR1 -x sxhkd; dunstify -u low -i ~/.local/share/assets/reload.svg 'sxhkd' 'The configuration file has been reloaded successfully!'
|
|
|
|
#####
|
|
|
|
# alternate between the tiled and monocle layout
|
|
super + m
|
|
bspc desktop -l next
|
|
|
|
# set the window state
|
|
super + {t,shift + t,s,f}
|
|
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
|
|
|
# set the node flags
|
|
ctrl + alt {m,x,s,p}
|
|
bspc node -g {marked,locked,sticky,private}
|
|
|
|
# Hide/Unhide Window
|
|
ctrl + alt + h
|
|
bsphidenode
|
|
|
|
#####
|
|
|
|
# rotate desktop
|
|
super + r
|
|
bspc node @/ --rotate {90,-90}
|
|
|
|
# Circulate the leaves of the tree
|
|
super + c
|
|
bspc node @/ --circulate {backward,forward}
|
|
|
|
# Change focus of the Node or Swap Nodes
|
|
super + {_,shift + }{Left,Down,Up,Right}
|
|
bspc node -{f,s} {west,south,north,east}
|
|
|
|
# Switch workspace
|
|
super + ctrl + {Left,Right}
|
|
bspc desktop -f {prev,next}.local
|
|
|
|
# focus the last node/desktop
|
|
super + {grave,Tab}
|
|
bspc {node,desktop} -f last
|
|
|
|
# focus or send to the given desktop
|
|
super + ctrl + {1-9,0}
|
|
bspc {node -d} '^{1-9,10}' '--follow'
|
|
|
|
# Send focused Node to workspace directionally
|
|
super + ctrl + shift + {Left,Right}
|
|
bspc node -d {prev,next} '--follow'
|
|
|
|
#####
|
|
|
|
# preselect the direction
|
|
super + ctrl + {h,j,k,l}
|
|
bspc node -p {west,south,north,east}
|
|
|
|
# preselect the ratio
|
|
super + ctrl + alt + {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
|
|
|
|
#####
|
|
|
|
# expand a window
|
|
super + alt + {Left,Down,Up,Right}
|
|
bspc node -z {left -10 0,bottom 0 10,top 0 -10,right 10 0}
|
|
|
|
# contract a window
|
|
super + alt + shift + {Left,Down,Up,Right}
|
|
bspc node -z {right -10 0,top 0 10,bottom 0 -10,left 10 0}
|
|
|
|
# move a floating window
|
|
alt + shift {Left,Down,Up,Right}
|
|
bspc node -v {-10 0,0 10,0 -10,10 0} |