You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like to use my caps lock key light as a low-battery indicator, and I was able to do this successfully under i3.
My udev and script setup is as follows:
When I have a tty open, my caps lock light correctly turns on when my battery gets low, but not in Sway.
Some steps to replicate
I'm on Arch Linux 2023-02-15, on a Thinkpad T480, but this should probably work with any hardware capslock lights.
Set input * xkb_options caps:escape in sway.
Be running sway.
In a terminal emulator open in sway, run echo 1 > /sys/class/leds/input3::capslock/brightness (at least input3::capslock is what the device is called on my laptop)
The light should quickly turn off after turning on.
I expect this is a fairly niche use case and probably not well-tested by the community, so replicating this would be helpful, and I'd like to see if anybody has guesses as to how to fix it (I'm betting on a dig through the code, but if there is a sway-input command I would be quite happy!)
Thank you,
Holden
The text was updated successfully, but these errors were encountered:
Hi,
I like to use my caps lock key light as a low-battery indicator, and I was able to do this successfully under i3.
My udev and script setup is as follows:
And I have the caps:escape option enabled in my sway config:
When I have a tty open, my caps lock light correctly turns on when my battery gets low, but not in Sway.
Some steps to replicate
I'm on Arch Linux 2023-02-15, on a Thinkpad T480, but this should probably work with any hardware capslock lights.
input * xkb_options caps:escape
in sway.echo 1 > /sys/class/leds/input3::capslock/brightness
(at least input3::capslock is what the device is called on my laptop)I expect this is a fairly niche use case and probably not well-tested by the community, so replicating this would be helpful, and I'd like to see if anybody has guesses as to how to fix it (I'm betting on a dig through the code, but if there is a sway-input command I would be quite happy!)
Thank you,
Holden
The text was updated successfully, but these errors were encountered: