WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.2k stars 47 forks source link

[Bug] Keys like [ ] - = as shortcuts, don't work in sway conf file #227

Closed IceAsteroid closed 9 months ago

IceAsteroid commented 9 months ago

Please fill out the following:

Description It's said in a sway issue page, users are able to use keys like "[", and "]" as parts of shortcuts in sway conf file, here: https://github.com/swaywm/sway/issues/5159

But when I specified them in the conf file. SwayFX complained they are "unknown key or buttom"

IceAsteroid commented 9 months ago

Like follows:

screenShot-grim_20231003203643

Any ideas?

Moreover, I also tested "," comma and "." period, they both worked.

Sonico98 commented 9 months ago

Like follows:

screenShot-grim_20231003203643

Any ideas?

Moreover, I also tested "," comma and "." period, they both worked.

In the issue you quoted, they state you should use "bracketleft", but you're writing "braketleft" instead (notice the missing "c" before the "k"). Also, you could use the keycode with bindcode, which is also mentioned in that issue.

ErikReider commented 9 months ago

Like follows:

screenShot-grim_20231003203643

Any ideas?

Moreover, I also tested "," comma and "." period, they both worked.

In the issue you quoted, they state you should use "bracketleft", but you're writing "braketleft" instead (notice the missing "c" before the "k"). Also, you could use the keycode with bindcode, which is also mentioned in that issue.

Exactly. This isn't a SwayFX specific issue but an upstream Sway issue so I'll be closing this. You should open an issue upstream if the comments here haven't helped :)

IceAsteroid commented 8 months ago

@Sonico98 @ErikReider Sorry guys, that's badly my issue. Which I misspelled the word, changing "braketleft" to "bracketleft" has fixed the issue.

I had something wrong in my mind in that day, how could I possibly think that's the correct spell?

Sorry for the noise.