175 lines
3.3 KiB
Plaintext
175 lines
3.3 KiB
Plaintext
## Copyright (C) 2020-2022 Aditya Shakya <adi1090x@gmail.com>
|
|
## Everyone is permitted to copy and distribute copies of this file under GNU-GPL3
|
|
|
|
##---------- Keybindings for bspwm ----------##
|
|
|
|
# Terminal (alacritty)
|
|
super + Return
|
|
bspterm
|
|
|
|
# Terminal (floating)
|
|
super + shift + Return
|
|
bspterm -f
|
|
|
|
# Terminal (fullscreen)
|
|
super + t
|
|
bspterm -s
|
|
|
|
##---------- Rofi Launcher & Menus ----------##
|
|
|
|
# Rofi App Launcher
|
|
ctrl + space
|
|
sh ~/.config/bspwm/rofi/bin/launcher
|
|
|
|
# Rofi Network Menu
|
|
super + n
|
|
nmd
|
|
|
|
# Rofi Themes Menu
|
|
ctrl + alt + t
|
|
sh ~/.config/bspwm/rofi/bin/themes
|
|
|
|
# Rofi Menus/Applets
|
|
super + {w,m,x,r,s,a}
|
|
bash -c ~/.config/bspwm/rofi/bin/{windows,mpd,powermenu,asroot,screenshot,keybinds}
|
|
# Keybinds
|
|
|
|
##---------- Applications ----------##
|
|
|
|
# Launch Apps
|
|
super + shift + {f,w,e}
|
|
{thunar,firefox,geany}
|
|
|
|
# Terminal Apps
|
|
ctrl + alt + {v,r,h}
|
|
alacritty --config-file ~/.config/bspwm/alacritty/alacritty.yml -e {vim,ranger,htop}
|
|
|
|
# Color Picker
|
|
super + p
|
|
color-gpick
|
|
|
|
# Lockscreen
|
|
ctrl + alt + l
|
|
betterlockscreen --lock
|
|
|
|
##---------- System Keys ----------##
|
|
|
|
# Take a screenshot
|
|
Print
|
|
takeshot --now
|
|
|
|
# Take screenshot in 5 second
|
|
alt + Print
|
|
takeshot --in5
|
|
|
|
# Take screenshot in 10 second
|
|
shift + Print
|
|
takeshot --in10
|
|
|
|
# Take screenshot of active window
|
|
ctrl + Print
|
|
takeshot --win
|
|
|
|
# Take screenshot of area
|
|
ctrl + alt + Print
|
|
takeshot --area
|
|
|
|
# Brighness control
|
|
XF86MonBrightness{Up,Down}
|
|
brightness{ --inc, --dec}
|
|
|
|
# Volume control
|
|
XF86Audio{RaiseVolume,LowerVolume}
|
|
volume{ --inc, --dec}
|
|
|
|
XF86AudioMute
|
|
volume --toggle
|
|
|
|
# Music control
|
|
XF86Audio{Next,Prev,Play,Stop}
|
|
mpc {next,prev,toggle,stop}
|
|
|
|
##---------- Bspwm ----------##
|
|
|
|
# Close App
|
|
super + {_,shift + }c
|
|
bspc node -{c,k}
|
|
|
|
# Reload Keybindings
|
|
super + Escape
|
|
pkill -USR1 -x sxhkd
|
|
|
|
# kill window
|
|
ctrl + alt + Escape
|
|
xkill
|
|
|
|
# Quit/Restart bspwm
|
|
ctrl + shift + {q,r}
|
|
bspc {quit,wm -r}
|
|
|
|
# Split horizontal, vertical or cancel
|
|
super + {h,v,q}
|
|
bspc node -p {east,south,cancel}
|
|
|
|
# Preselect the ratio
|
|
super + ctrl + {1-9}
|
|
bspc node -o 0.{1-9}
|
|
|
|
# Fullscreen or Monocle
|
|
super + f
|
|
# bspc desktop -l next
|
|
bspc node -t "~"fullscreen
|
|
|
|
# Toggle beetwen floating & tiled
|
|
super + space
|
|
bspc node -t "~"{floating,tiled}
|
|
|
|
# Pseudo Tiled & tiled mode
|
|
super + shift + space
|
|
#super + {p,t}
|
|
bspc node -t "~"{pseudo_tiled,tiled}
|
|
|
|
# Set the node flags
|
|
super + ctrl + {m,x,y,z}
|
|
bspc node -g {marked,locked,sticky,private}
|
|
|
|
# Send the window to another edge of the screen
|
|
super + shift + {Left,Down,Up,Right}
|
|
dir={west,south,north,east}; \
|
|
bspc node -s "$dir.local" --follow \
|
|
|| bspc node -m "$dir" --follow
|
|
|
|
# Change focus to next window, including floating window
|
|
alt + {_,shift + }Tab
|
|
bspc node -f {next.local,prev.local}
|
|
|
|
# Switch workspace
|
|
ctrl + alt + {Left,Right}
|
|
bspc desktop -f {prev.local,next.local}
|
|
|
|
# Switch to last opened workspace
|
|
super + {Tab,grave}
|
|
bspc {node,desktop} -f last
|
|
|
|
# Send focused window to another workspace
|
|
super + {_,shift + }{1-8}
|
|
bspc {desktop -f,node -d} '^{1-8}'
|
|
|
|
# Expanding windows
|
|
super + control + {Left,Right,Up,Down}
|
|
bspc node -z {left -20 0,right 20 0,top 0 -20,bottom 0 20}
|
|
|
|
## Shrinking windows
|
|
super + alt + {Left,Right,Up,Down}
|
|
bspc node -z {left 20 0,right -20 0,top 0 20,bottom 0 -20}
|
|
|
|
## Move floating windows
|
|
alt + shift + {Left,Down,Up,Right}
|
|
bspc node -v {-20 0,0 20,0 -20,20 0}
|
|
|
|
# Hide/Unhide Window
|
|
super + shift + i
|
|
winmask
|
|
|
|
##---------- EOF ----------##
|