Skip to content

[backend] option to ignore caps lock, fixes #41#123

Merged
ErikReider merged 1 commit intoErikReider:mainfrom
shish:ignore-caps-lock-backend
Jan 24, 2025
Merged

[backend] option to ignore caps lock, fixes #41#123
ErikReider merged 1 commit intoErikReider:mainfrom
shish:ignore-caps-lock-backend

Conversation

@shish
Copy link
Contributor

@shish shish commented Jan 21, 2025

No idea if this is a good approach[0], but it works for me.

/etc/xdg/swayosd/backend.toml set to

[input]
ignore_caps_lock_key = true

[0] I think in an ideal world we would ignore the capslock key and instead monitor the capslock status[1], but I have no idea how one would do that

[1] I do actually like having a capslock status notifier - the reason I'm adding in support to ignore the capslock key is that I have the capslock key aliased to escape, so it no longer has anything to do with the capslock status

No idea if this is a good approach[0], but it works for me.

`/etc/xdg/swayosd/backend.toml` set to

```
[input]
ignore_caps_lock_key = true
```

[0] I think in an ideal world we would ignore the capslock key and instead monitor the capslock status[1], but I have no idea how one would do that

[1] I do actually like having a capslock status notifier - the reason I'm adding in support to ignore the capslock key is that I have the capslock key aliased to `escape`, so it no longer has anything to do with the capslock status
@ErikReider
Copy link
Owner

How do you remap your CapsLock key to ESC in wayland btw?

@shish
Copy link
Contributor Author

shish commented Jan 24, 2025

~/.config/sway/config

input "type:keyboard" {
    xkb_layout gb
    xkb_variant ,nodeadkeys
    xkb_options caps:escape
}

(probably only xkb_options is relevant, but pasting my whole input config just in case)

@ErikReider
Copy link
Owner

~/.config/sway/config

input "type:keyboard" {
    xkb_layout gb
    xkb_variant ,nodeadkeys
    xkb_options caps:escape
}

(probably only xkb_options is relevant, but pasting my whole input config just in case)

Oh, nvm. Though you were editing some xkb file or something that swayosd could check :/

Copy link
Owner

@ErikReider ErikReider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected! Thanks! :D

@ErikReider ErikReider merged commit 75b94d0 into ErikReider:main Jan 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants