2020-04-29 15:58:14 +00:00
|
|
|
# Basic binds (inspired from the previous i3 config).
|
|
|
|
super + Return
|
2019-12-23 03:44:56 +00:00
|
|
|
$TERMINAL
|
|
|
|
|
2020-04-29 15:58:14 +00:00
|
|
|
# A dropdown terminal.
|
|
|
|
# Requires tmux and tdrop for this to work.
|
2019-12-23 03:44:56 +00:00
|
|
|
super + shift + Return
|
|
|
|
tdrop -ma -w -4 -y "$PANEL_HEIGHT" -s dropterm $TERMINAL
|
|
|
|
|
|
|
|
super + t
|
2020-04-29 15:58:14 +00:00
|
|
|
toggle-bin screenkey
|
2019-12-23 03:44:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Utility keyboard shortcuts.
|
|
|
|
|
|
|
|
# Application launcher.
|
|
|
|
super + d
|
2020-04-29 15:58:14 +00:00
|
|
|
rofi -show drun -sidebar-mode -theme fds-mini-sidebar
|
2019-12-23 03:44:56 +00:00
|
|
|
|
|
|
|
# User action shortcuts.
|
|
|
|
super + F10
|
2020-04-29 15:58:14 +00:00
|
|
|
user-prompt "Proceed to shutdown?" "sudo -A shutdown 0"
|
2019-12-23 03:44:56 +00:00
|
|
|
|
|
|
|
super + F11
|
2020-04-29 15:58:14 +00:00
|
|
|
user-prompt "Proceed to reboot?" "sudo -A reboot"
|
2019-12-23 03:44:56 +00:00
|
|
|
|
|
|
|
super + F12
|
2020-04-29 15:58:14 +00:00
|
|
|
user-prompt "Exit from X session?" "killall Xorg"
|
2019-12-23 03:44:56 +00:00
|
|
|
|
2020-04-29 15:58:14 +00:00
|
|
|
# Screenshot and screencast launcher.
|
2020-04-02 15:42:52 +00:00
|
|
|
Print
|
2020-04-29 15:58:14 +00:00
|
|
|
rofi-screenshot --prompt || rofi-screenshot
|
2019-12-23 03:44:56 +00:00
|
|
|
|
2020-03-25 16:41:57 +00:00
|
|
|
# Screenshot with OCR capability
|
|
|
|
super + shift + w
|
2020-04-29 15:58:14 +00:00
|
|
|
ocr
|
2020-03-25 16:41:57 +00:00
|
|
|
|
2019-12-23 03:44:56 +00:00
|
|
|
# Screen record shortcuts.
|
|
|
|
{_,shift +} {_,control +} super + Print
|
2020-04-29 15:58:14 +00:00
|
|
|
record --output $\{VIDEOS_DIRECTORY:-$HOME/recordings\} {_,--disable-cursor} {_,--follow-mouse}
|
2019-12-23 03:44:56 +00:00
|
|
|
|
|
|
|
# Miscellaneous shortcuts.
|
|
|
|
super + shift + m
|
2020-04-29 15:58:14 +00:00
|
|
|
choose-manual --viewpdf
|
2020-01-20 09:18:40 +00:00
|
|
|
|
|
|
|
super + shift + e
|
2020-04-29 15:58:14 +00:00
|
|
|
choose-emoji
|
|
|
|
|
|
|
|
super + shift + t
|
|
|
|
select-wal-theme
|
2019-12-23 03:44:56 +00:00
|
|
|
|
|
|
|
shift + super + r
|
2020-04-29 15:58:14 +00:00
|
|
|
pkill -USR1 sxhkd && notify-send "SXHKD config has successfully reloaded."
|
2019-12-23 03:44:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-29 15:58:14 +00:00
|
|
|
# The usual application suite shortcuts.
|
|
|
|
# I'm separating them according to the keyboard row (in the QWERTY layout anyway).
|
|
|
|
super + a ; {z, x, c, v, b, n, m}
|
|
|
|
{ nvim, code, inkscape, gimp, blender, kdenlive, lmms }
|
2019-12-23 03:44:56 +00:00
|
|
|
|
2020-04-29 15:58:14 +00:00
|
|
|
super + a ; {f, a, d}
|
|
|
|
{ firefox, $TERMINAL -e lf, krita }
|
2019-12-23 03:44:56 +00:00
|
|
|
|
|
|
|
super + a ; {t, r}
|
|
|
|
{ thunderbird, thunar }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# bspwm exclusive shortcuts.
|
|
|
|
# Feel free to replace these if you're working with another WM/DE.
|
2020-04-29 15:58:14 +00:00
|
|
|
# Over time, I may replace one of the usual shortcut
|
|
|
|
# with something more generally applied (with `xdotool` for example).
|
|
|
|
|
|
|
|
# Kill the focused window.
|
|
|
|
super + {_, shift +} + q
|
|
|
|
bspc node -{c,k}
|
2019-12-23 03:44:56 +00:00
|
|
|
|
2020-04-29 15:58:14 +00:00
|
|
|
# Move desktop/node view to the specified desktop.
|
2019-12-23 03:44:56 +00:00
|
|
|
super + {_,shift + }{1-9,0}
|
|
|
|
bspc {desktop -f,node -d} '^{1-9,10}'
|
|
|
|
|
|
|
|
super + z
|
|
|
|
bspc node -t '~floating'
|
|
|
|
|
2020-04-29 15:58:14 +00:00
|
|
|
super + x
|
2019-12-23 03:44:56 +00:00
|
|
|
bspc node -t '~fullscreen'
|
|
|
|
|
2020-04-29 15:58:14 +00:00
|
|
|
super + c
|
2019-12-23 03:44:56 +00:00
|
|
|
bspc node -t '~tiled'
|
|
|
|
|
2020-04-29 15:58:14 +00:00
|
|
|
# Desktop and node movements.
|
2020-04-04 16:27:13 +00:00
|
|
|
super + {_, shift + } Tab
|
|
|
|
bspc desktop {next, prev} --focus
|
2019-12-23 03:44:56 +00:00
|
|
|
|
2020-04-04 16:27:13 +00:00
|
|
|
super + {_, shift + } + grave
|
|
|
|
bspc {desktop last --focus, node --to-desktop last}
|
2019-12-23 03:44:56 +00:00
|
|
|
|
|
|
|
super + {Up,Down,Left,Right}
|
|
|
|
bspc node {north,south,west,east} --focus
|
|
|
|
|
|
|
|
super + shift {Up,Down,Left,Right}
|
|
|
|
bspc node {north,south,west,east} --swap focused --follow
|
|
|
|
|