dotfiles/sxhkd/.config/sxhkd/sxhkdrc

71 lines
1.7 KiB
Text
Raw Normal View History

# universal x key bindings
# System functionality
# Enable lock screen (TODO does not stop music, etc yet)
super + x
lockscreen
# Open System Power Menu
super + BackSpace
rofi -modi "powermenu:~/.config/rofi/modes/powermenu" -show powermenu -theme themes/powermenu
# quick-switching of theme using styler
super + F8
styler set $(styler list themes | rofi -dmenu -theme /themes/dropdown -matching fuzzy)
# enable function (/media) key functionality
XF86MonBrightness{Up,Down}
xbacklight {-inc,-dec} 10
XF86AudioMute
pulsemixer --toggle-mute
XF86Audio{RaiseVolume,LowerVolume}
pulsemixer --change-volume {-5,+5}
# Open terminal emulator (TODO find way to not hard-code alacritty, perhaps ENV vars)
super + Return
alacritty
# open quick start menu
super + space
rofi -show drun -theme themes/dmenu
# open more extensive run menu
super + r
rofi -modi combi,ssh,calc -show combi -combi-modi "window,clipboard:greenclip print,run" -theme themes/dropdown
# open gopass frontend menu
super + p
rofi-gopass -theme themes/dropdown
# open surfraw rofi frontend
super + q
rofi-surfraw
## modes
# media control mode
# seek +/- 5 seconds
alt + m : {h,l}
playerctl position {5-,5+}
# seek +/- 15 seconds
alt + m : shift + {h,l}
playerctl position {15-,15+}
# decrease/increase volume
alt + m : {j,k}
pulsemixer --change-volume {-5,+5}
# decrease/increase volume
alt + m : shift + {j,k}
playerctl {next,previous}
# pause/stop player
alt + m : {_,shift} + p
playerctl {play-pause,stop}
# academia mode
# due papers this week
alt + a : {F1,F2}
rofi-bib-due -p{1,3} -u $(date --date='fri this week' +%Y-%m-%d)
# due papers overall
alt + a : shift + {F1,F2}
rofi-bib-due -p{1,3}