mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-26 14:35:58 +01:00
update binds for switches:
This commit is contained in:
parent
24c910da8c
commit
b1f11e564c
1 changed files with 11 additions and 0 deletions
|
@ -49,6 +49,7 @@ can also use `xev` or `wev` to find keycodes.
|
||||||
|
|
||||||
## Misc
|
## Misc
|
||||||
|
|
||||||
|
### Unbind
|
||||||
You can also unbind with `unbind`, e.g.:
|
You can also unbind with `unbind`, e.g.:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
|
@ -57,6 +58,7 @@ unbind=SUPER,O
|
||||||
|
|
||||||
May be useful for dynamic keybindings with `hyprctl`.
|
May be useful for dynamic keybindings with `hyprctl`.
|
||||||
|
|
||||||
|
### Mouse buttons
|
||||||
You can also bind mouse buttons, by prefacing the mouse keycode with `mouse:`,
|
You can also bind mouse buttons, by prefacing the mouse keycode with `mouse:`,
|
||||||
for example:
|
for example:
|
||||||
|
|
||||||
|
@ -66,6 +68,7 @@ bind=SUPER,mouse:272,exec,amongus
|
||||||
|
|
||||||
will bind it to <key>SUPER</key> + <key>LMB</key>.
|
will bind it to <key>SUPER</key> + <key>LMB</key>.
|
||||||
|
|
||||||
|
### Only modkeys
|
||||||
For binding only modkeys, you need to use the TARGET modmask (with the
|
For binding only modkeys, you need to use the TARGET modmask (with the
|
||||||
activating mod) and the `r` flag, e.g.:
|
activating mod) and the `r` flag, e.g.:
|
||||||
|
|
||||||
|
@ -73,12 +76,20 @@ activating mod) and the `r` flag, e.g.:
|
||||||
bindr=SUPERALT,Alt_L,exec,amongus
|
bindr=SUPERALT,Alt_L,exec,amongus
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Mouse wheel
|
||||||
You can also bind the mouse wheel with `mouse_up` and `mouse_down`:
|
You can also bind the mouse wheel with `mouse_up` and `mouse_down`:
|
||||||
```ini
|
```ini
|
||||||
bind=SUPER,mouse_down,workspace,e-1
|
bind=SUPER,mouse_down,workspace,e-1
|
||||||
```
|
```
|
||||||
(control the reset time with `binds:scroll_event_delay`)
|
(control the reset time with `binds:scroll_event_delay`)
|
||||||
|
|
||||||
|
### Switches
|
||||||
|
Useful for binding e.g. the lid close/open event:
|
||||||
|
```
|
||||||
|
bindl=,switch:[switch name],exec,swaylock
|
||||||
|
```
|
||||||
|
check out your switches in `hyprctl devices`.
|
||||||
|
|
||||||
## Bind flags
|
## Bind flags
|
||||||
|
|
||||||
bind supports flags in this format:
|
bind supports flags in this format:
|
||||||
|
|
Loading…
Reference in a new issue