Replies: 6 comments
-
I think it might be doable today with some effort. The It looks pretty simple to get the numlock status in powershell: https://stackoverflow.com/a/41234688 The read-only value |
Beta Was this translation helpful? Give feedback.
-
A bit of nitpicking - this would not necessarily work on *nix machine. On my Debian I get PS> [console]::NumberLock
OperationStopped: Operation is not supported on this platform. I do not have access to a macos machine, but in my experience such low-level addendum According to https://rajapet.com/2020/07/06/using-powershell-to-set-the-num-lock-state/, on MacOS |
Beta Was this translation helpful? Give feedback.
-
Good point! I mentioned powershell since I'm pretty sure gerhard-h uses Windows, but such advice would not apply in general. It would need to be substituted by some other mechanism on the respective OS. E.g. in Linux it appears to be |
Beta Was this translation helpful? Give feedback.
-
The command sudo sh -c 'setleds +num < /dev/console' seems to work on Linux, however not while setleds: Unable to read keyboard flags: Inappropriate ioctl for device |
Beta Was this translation helpful? Give feedback.
-
That's interesting that kanata stops it from working. A potential workaround would be to parse the output of |
Beta Was this translation helpful? Give feedback.
-
Will convert this to a discussion - I don't think it's worth making a builtin feature when it can be scripted using existing features. Here's a sample for Windows; it should be fairly straightforward to adapt for Linux using
If using |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I lately wondered why some of my macros stopped working. But there was no issue with macros.
But I used kp1, kp2,... in the macor and had deactivated Numlock the day before.
Describe the solution you'd like
Having keys numlock_on / numlock_off that change the numlock if needed.
Additional context
Beta Was this translation helpful? Give feedback.
All reactions