dotfiles/sxhkd/.config/sxhkd/sxhkdrc
Marty Oehme c71c553591
rofi: Fix powermenu searchstring display
Since switching to `dash` as the default sh shell, rofi would display
ostensibly hidden strings (like comment tags, or rofi meta options).

This is due to this bug https://github.com/davatorium/rofi/issues/1201
or behavior of dash. Could be possibly fixed by using octal, for now,
the script works with bash rather than sh (i.e. dash).
2021-04-04 12:22:16 +02:00

92 lines
2.3 KiB
Text

# 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 -selected-row 2
# quick-switching of theme using styler
super + F8
styler set $(styler list themes | rofi -dmenu -theme /themes/dropdown -matching fuzzy -filter "-256 -atelier ")
super + F7
polybar-msg cmd toggle
# enable function (/media) key functionality
XF86MonBrightness{Up,Down}
control-brightness {up, down} 10
XF86AudioMute
control-volume mute
XF86Audio{LowerVolume,RaiseVolume}
control-volume {down, up}
XF86Search
dunstctl set-paused toggle && echo "$(dunstctl is-paused)" > /tmp/dunstpaused
# Open terminal emulator (the variable gets set in sh module basic env vars)
super + Return
$TERMINAL
# open quick start menu
super + space
rofi -show drun -theme themes/dmenu
# open more extensive run menu
super + shift + space
rofi -modi combi,ssh -show combi -combi-modi "window,clipboard:greenclip print,run" -theme themes/dropdown
# open dropdown calculator -- top left (small r), bottom right (capital R)
super + { r, shift + r }
rofi -modi calc -show calc -location { 1, 5 }
# open gopass frontend menu
super + shift + p
rofi-pass -theme themes/dropdown
# open surfraw rofi frontend
super + shift + q
rofi-surfraw
# insert emojis into any document/form
super + shift + e
rofimoji
super + shift + u
alacritty --class floating,floating -e sharefile | xargs notify-send
## modes
# mode:media:alt + m
# 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}
# mode:academia:alt + a
# 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}
alt + a : F3
rofi-bib-due
# read wallabag articles from the cmdline
alt + a : {r, shift+r}
alacritty --class floating,floating -e wallr {-n,_}