Skip to content

Hotkeys

The hotkey configuration in Hyprland is located at the path ~/.config/hypr/keybindings.conf.

bind=MODIFICATOR,KEYBINDING,DISPATCHER,PARAMETERS

Where MODIFICATOR can be one of the following values: super, alt, control, shift, meta. KEY is the symbol for the key you want. DISPETCHER indicates the action that will be performed when you press the keyboard shortcut.

# This command will open the kitty terminal when the Super + T shortcut is pressed.
bind=SUPER,T,exec,kitty
# You can also bind mouse buttons by adding a pre-code to the mouse key code: mouse:, for example:
bind=SUPER,mouse:272,exec,firefox

You can refer to the official Hyprland documentation here for more details and examples.

The hotkey configuration is located at the path ~/.config/bspwm/sxhkdrc.

Each line in the file is interpreted as follows:
If a line starts with #, it is ignored.
If a line starts with whitespace characters, it is read as a command to run.
Otherwise, the string is read as a keyboard shortcut: key names separated by a space or + character. \

[MODIFIER + ]*[@]CHARACTER
COMMAND

Where MODIFICATOR can have one of the following values: super, hyper, meta, alt, control, ctrl, shift, mode_switch, lock, mod1, mod2, mod3, mod4, mod5. If you add @ before the key symbol, the command will be executed when the key is released, not immediately when it is pressed. You can find out the SYMBOL of the key you need by using the xev command.

To track mouse buttons, you can use special key codes button1, button2, button3, …, button24. You can also specify several key codes at once as a sequence {SIMBOL_1,…,SIMBOL_N} and add to the command a sequence of strings (in curly brackets and separated by commas) of the same length - then the sequence element that corresponds to the specified key code in the order you specified will be substituted into the command. If you need to add regular curly braces to a command, escape them with a backslash so that they do not conflict with the sequence syntax: for example, if you want to add the awk command ‘{print $1}’, write it as awk ‘{print $1}’. You can also specify the sequence as an A-Z range, where A and Z are a letter or a number.

### Emulate Alt_R+F1 when left mouse button is pressed
button1
xte “keydown Alt_R” “keydown F1” “keyup Alt_R” “keyup F1”
# When the middle mouse button is pressed, wait 3 seconds and emulate pressing Alt_R+F2
button2
xte “sleep 3” “keydown Alt_R” “keydown F2” “keyup Alt_R” “keyup F2”

For more information and examples, you can refer to the official sxhkd repository here, or the documentation provided on the Arch Wiki.

Key combinations
Name of action Hyprland Bspwm
Open terminal super + enter
Open the file manager super + e
Open Task Manager (btop) ctrl + shift + esc
Change the wallpaper super + w
Change the subject super + t
Take a screenshot PrintScreen
Mixer (Pavucontrol) super + p
Clipboard super + v3
Open the application menu super + d
Open memoji selection super + .
Open the power on/off menu of the computer super + x
Lock the screen super + l
Recognize the color on the screen super + c
Enable/disable a panel (Waybar/Polybar) super + b
Open Firefox super + shift + f
Open VSCode super + shift + c
Open Telegram super + shift + t
Open OBS super + shift + o
Sound adjustment Default as on your device
Brightness control Default as on your device
Music control Default as on your device
Kill the window manager super + delete
Restart the window manager ctrl + shift + r
Close the active window super + q
Switch the active window to floating mode super + space
Switch the active window to full-size mode alt + enter
Change focus to another window super + right/left/up/down
Switch to another workspace super + 1-10
Switch to the previous/next workspace super + ctrl + left/right
Switch to the first free workspace super + ctrl + down
Switch to a different workspace using the click wheel super + scroll
Move the active window to another workspace super + shift + 1-10
Resize the window using the keyboard super + shift + right/left/up/down
Resize the window from the mouse super + right_mouse_btn
Move the window on the current desktop with the keyboard super + shift + ctrl + right/left/up/down
Move the window on the current desktop with the mouse super + left_mouse_btn
Switch to the hidden workspace super + s N/A
Move window to / from hidden workspace super + alt + s N/A