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

Some suggestions: Keycode binding, binding w/o mod key, etc #60

Closed ExperiBass closed 2 years ago

ExperiBass commented 2 years ago

Is your feature request related to a problem? Please describe. I stumbled across this in r/unixporn, and thought it would be a good experiment to see if i like it better than i3-gaps. But I'm noticing it lacks some features that i use daily.

Just my two cents, other than these im enjoying it so far :D

Anything else?

vaxerski commented 2 years ago

Keycode: ok, can do.

no mod: leave it empty, it's not a bug. you can do

bind=,A,exec,amongus

and it will work without a mod. I think I mentioned it in the wiki or the example config, but I'm not sure.

super and shift together work for me, and everyone else, you must be doing something wrong.

bind=SUPERSHIFT,A,exec,amongus

should work.

binds are unintuitive? I'd say they aren't, you have the MOD field and the KEY field, what's wrong with that? Changing it right now will not happen, as that would break compat.

ExperiBass commented 2 years ago

super and shift together work for me, and everyone else, you must be doing something wrong.

bind=SUPERSHIFT,1,movetoworkspace,1 doesn't work for me, nor does bind=SUPERSHIFT,D,exec,i3-dmenu-desktop.

binds are unintuitive? I'd say they aren't, you have the MOD field and the KEY field, what's wrong with that?

my nitpick is i have difficulty picking apart statements unless theyre separated. i guess allowing whitespace in the config would help (bind = SUPER, 1, workspace, 1 instead of bind=SUPER,1,workspace,1).

vaxerski commented 2 years ago

I might allow whitespaces, that's doable.

if supershift doesn't work, is it captured by the wm? or does SUPERSHIFT+D print something into the window? (e.g. a terminal)

ExperiBass commented 2 years ago

if supershift doesn't work, is it captured by the wm? or does SUPERSHIFT+D print something into the window? (e.g. a terminal) it acts like the shift key isnt pressed at all, so it ends up just being SUPER+D, which i set to dmenu_run.

vaxerski commented 2 years ago

keyboard wack then, your shift has to be remapped / non-standard. use xev that i describe in the wiki and see what mask your shift key is, then use that mask instead (e.g. if shift is 256, and you want shift+alt, it'd be 264, because 256+8, cuz alt is 8)

ExperiBass commented 2 years ago

Now its just spitting out "0A" when i hit the binding...

ExperiBass commented 2 years ago

Its gotten weirder!

i can use SUPERSHIFT+F to fullscreen, but cant use that same binding for anything else.

vaxerski commented 2 years ago

maybe because you have 2 keybinds per supershift+f? i feel your system is haunted.

ExperiBass commented 2 years ago

maybe because you have 2 keybinds per supershift+f? i feel your system is haunted.

I'm starting to think that too xwx;

And I'm sure I don't have two, I cleared all the default keybinds and retyped them so I have a clean slate

vaxerski commented 2 years ago

SHIFT fixed in 1667180ac3554cdeaf00ac2cd0f3ad37e64bce30, my bad.

vaxerski commented 2 years ago

keycodes (keysyms) as ints added in b52e6ea0558193cbeb5978e220285a552fb4fc2c

vaxerski commented 2 years ago

Wiki updated to mention no MOD.

keycodes - done shift - fixed no mods wiki - updated config - no. spacing - I'll consider.

closing for now.