2019-05-22 12:41:33 +00:00
|
|
|
# universal x key bindings
|
|
|
|
|
|
|
|
# System functionality
|
|
|
|
|
2020-05-26 08:33:32 +00:00
|
|
|
# Enable lock screen (TODO does not stop music, etc yet)
|
2019-05-22 12:41:33 +00:00
|
|
|
super + x
|
2019-09-05 11:04:18 +00:00
|
|
|
lockscreen
|
2019-05-22 12:41:33 +00:00
|
|
|
|
2019-09-05 11:04:18 +00:00
|
|
|
# Open System Power Menu
|
2019-05-22 12:41:33 +00:00
|
|
|
super + BackSpace
|
2021-04-04 10:09:19 +00:00
|
|
|
rofi -modi "powermenu:~/.config/rofi/modes/powermenu" -show powermenu -theme themes/powermenu -selected-row 2
|
2019-05-22 12:41:33 +00:00
|
|
|
|
2020-01-31 00:22:47 +00:00
|
|
|
# quick-switching of theme using styler
|
|
|
|
super + F8
|
2020-05-28 08:30:58 +00:00
|
|
|
styler set $(styler list themes | rofi -dmenu -theme /themes/dropdown -matching fuzzy -filter "-256 -atelier ")
|
2020-01-31 00:22:47 +00:00
|
|
|
|
2020-12-03 11:41:04 +00:00
|
|
|
super + F7
|
|
|
|
polybar-msg cmd toggle
|
|
|
|
|
2019-05-22 12:41:33 +00:00
|
|
|
# enable function (/media) key functionality
|
2020-05-26 08:33:32 +00:00
|
|
|
XF86MonBrightness{Up,Down}
|
2020-12-20 22:13:36 +00:00
|
|
|
control-brightness {up, down} 10
|
2019-05-22 12:41:33 +00:00
|
|
|
XF86AudioMute
|
2021-03-17 13:19:28 +00:00
|
|
|
control-volume mute
|
2020-08-01 07:19:26 +00:00
|
|
|
XF86Audio{LowerVolume,RaiseVolume}
|
2021-03-17 13:19:28 +00:00
|
|
|
control-volume {down, up}
|
2020-05-26 08:33:32 +00:00
|
|
|
|
2021-03-17 13:46:39 +00:00
|
|
|
XF86Search
|
|
|
|
dunstctl set-paused toggle && echo "$(dunstctl is-paused)" > /tmp/dunstpaused
|
|
|
|
|
2020-05-28 08:30:58 +00:00
|
|
|
# Open terminal emulator (the variable gets set in sh module basic env vars)
|
2020-05-26 08:33:32 +00:00
|
|
|
super + Return
|
2020-05-28 08:30:58 +00:00
|
|
|
$TERMINAL
|
2020-05-26 08:33:32 +00:00
|
|
|
|
|
|
|
# open quick start menu
|
|
|
|
super + space
|
|
|
|
rofi -show drun -theme themes/dmenu
|
|
|
|
|
|
|
|
# open more extensive run menu
|
[sxhkd] Separate calculator and run shortcuts
Previously, super + r would open an extended run menu which contained
all programs to run, ssh servers to connect to, clipboard history, open
windows, *and* the calculator. It was cumbersome to open the window,
switch the mode to calculator and then have it obscure half the screen.
It was also the mode most often used.
So, these two modes have been split, and their mappings updated:
`super + shift + spacebar` opens the old extended run menu (sans calc),
the mapping mimicking the 'extended' version of the normal run mapping.
`super (+ shift) + r` opens the calculator. Without shift it opens top
left of the screen, with shift bottom right.
2020-07-05 08:29:56 +00:00
|
|
|
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 }
|
2020-05-26 08:33:32 +00:00
|
|
|
|
|
|
|
# open gopass frontend menu
|
2021-03-05 16:03:33 +00:00
|
|
|
super + shift + p
|
2020-09-12 15:53:46 +00:00
|
|
|
rofi-pass -theme themes/dropdown
|
2020-05-26 08:33:32 +00:00
|
|
|
|
|
|
|
# open surfraw rofi frontend
|
2021-03-05 16:03:33 +00:00
|
|
|
super + shift + q
|
2020-05-26 08:33:32 +00:00
|
|
|
rofi-surfraw
|
|
|
|
|
2021-03-05 16:03:33 +00:00
|
|
|
# insert emojis into any document/form
|
|
|
|
super + shift + e
|
|
|
|
rofimoji
|
|
|
|
|
|
|
|
super + shift + u
|
|
|
|
alacritty --class floating,floating -e sharefile | xargs notify-send
|
|
|
|
|
2020-05-26 08:33:32 +00:00
|
|
|
## modes
|
|
|
|
|
2020-05-26 12:55:06 +00:00
|
|
|
# mode:media:alt + m
|
2020-05-26 08:33:32 +00:00
|
|
|
# seek +/- 5 seconds
|
2020-05-26 11:59:57 +00:00
|
|
|
alt + m : {h,l}
|
2020-05-26 08:33:32 +00:00
|
|
|
playerctl position {5-,5+}
|
|
|
|
# seek +/- 15 seconds
|
2020-05-26 11:59:57 +00:00
|
|
|
alt + m : shift + {h,l}
|
2020-05-26 08:33:32 +00:00
|
|
|
playerctl position {15-,15+}
|
|
|
|
# decrease/increase volume
|
2020-05-26 11:59:57 +00:00
|
|
|
alt + m : {j,k}
|
2020-05-26 08:33:32 +00:00
|
|
|
pulsemixer --change-volume {-5,+5}
|
|
|
|
# decrease/increase volume
|
2020-05-26 11:59:57 +00:00
|
|
|
alt + m : shift + {j,k}
|
2020-05-26 08:33:32 +00:00
|
|
|
playerctl {next,previous}
|
|
|
|
# pause/stop player
|
2020-05-26 11:59:57 +00:00
|
|
|
alt + m : {_,shift} + p
|
2020-05-26 08:33:32 +00:00
|
|
|
playerctl {play-pause,stop}
|
2020-05-26 09:46:53 +00:00
|
|
|
|
2020-05-26 12:55:06 +00:00
|
|
|
# mode:academia:alt + a
|
2020-05-26 11:59:57 +00:00
|
|
|
# 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}
|
2020-05-28 08:30:58 +00:00
|
|
|
alt + a : F3
|
|
|
|
rofi-bib-due
|
2021-03-08 08:14:33 +00:00
|
|
|
# read wallabag articles from the cmdline
|
|
|
|
alt + a : {r, shift+r}
|
|
|
|
alacritty --class floating,floating -e wallr {-n,_}
|