hyprwm / Hypr

Hypr is a tiling window manager written in modern C++.
BSD 3-Clause "New" or "Revised" License
1.1k stars 33 forks source link

Missing documentation? #28

Closed SisyphusIsntHappy closed 2 years ago

SisyphusIsntHappy commented 2 years ago

I could not find documentation on keybindings, especially, quitting and reloading Hypr. Is there any? The example config doesn't have those bindings.

linuxmobile commented 2 years ago

I could not find documentation on keybindings, especially, quitting and reloading Hypr. Is there any? The example config doesn't have those bindings.

I want to add something too. I can't find the way to add: Some rofi scripts, some shortcuts to notify-send.sh like:


XF86AudioRaiseVolume(vol +) = command "bash -c '~/.scripts/notify/change-volume up"
XF86AudioLowerVolume (vol -)  = command "bash -c '~/.scripts/notify/change-volume down"
PRINT = bash -c '~/.scripts/shot-now'

More documentation can be perfect :)
vaxerski commented 2 years ago

Regarding the first comment: There is no keybinding for reloading Hypr. What do you want to reload? The config gets reloaded automatically.

There is no keybinding for quitting hypr. Use bind=mod,key,exec,pkill Hypr

Regarding the second comment: What are the commands here? those after bash -c? just put them in an exec bind: bind=mod,key,exec,~/scripts/shot-now

The documentation mentions the exec dispatcher and it's also used in the example config.

linuxmobile commented 2 years ago

Regarding the first comment: There is no keybinding for reloading Hypr. What do you want to reload? The config gets reloaded automatically.

There is no keybinding for quitting hypr. Use bind=mod,key,exec,pkill Hypr

Regarding the second comment: What are the commands here? those after bash -c? just put them in an exec bind: bind=mod,key,exec,~/scripts/shot-now

The documentation mentions the exec dispatcher and it's also used in the example config.

I can't get workin PRINT key, and a lot of .scripts can't run too. same problem with XF86AudioLowerVolume this keys... You can find my dotfiles in my user.

SisyphusIsntHappy commented 2 years ago

There is no keybinding for quitting hypr. Use bind=mod,key,exec,pkill Hypr

Will pkill Hypr kill all the processes that were started by Hypr??

vaxerski commented 2 years ago

Print keys and the other ones aren't a feature. I can add that in. Regarding the scripts, it probably is an issue on your end. try absolute paths.

Ad 2. pkill Hypr will make xorg exit, so probably yes.

vaxerski commented 2 years ago

Added support for all x keys in fa20d1342545f3b6871ffe6e2fba963cd8c595ad

Check your key's name with xmodmap -pk or xev -event keyboard, for prt scr it's "Print" (case-sensitive!)

samwhelp commented 2 years ago

Added support for all x keys in fa20d13

Check your key's name with xmodmap -pk or xev -event keyboard, for prt scr it's "Print" (case-sensitive!)

It works.

Thanks for your effort.

Please see my hypr.conf and spec-keybind.

See Also

linuxmobile commented 2 years ago

Added support for all x keys in fa20d13

Check your key's name with xmodmap -pk or xev -event keyboard, for prt scr it's "Print" (case-sensitive!)

Great. It works. Thx u a lot. This is an amazing project

vaxerski commented 2 years ago

Closing. Issue fixed and I've clarified it in the wiki that you do not reload hypr with a keybind and you exit with e.g. pkill Hypr.