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
one line script to print out X11 Mouse Keys (Wikipedia article). My one liner uses Conky's exec. Conky suggest the better approach of C/C++. I could try converting it to a C execve, or similar. But a better approach is, probably, X11 C code. I am not familiar with X11. But Conky already has related C++ code. x11.cc. It could be a related existing variable, namely keyboard_layout, is directly derived from that X11 code. x11.cc : print_keyboard_layout. By the output of xset -q I guess that other parts from the bottom of the x11.cc file are very close to obtaining the Mouse Keys status. Perhaps someone better acquainted can come up with a new mouse_keys Conky variable?
One reason for me looking for such a variable is it being a moving target. By that I mean the Mouse Keys state can sometimes changed, usually from on to off, unexpectedly. I still not sure about the circumstances for those changes. I suspect important applications, such as Mozilla Firefox and its derivatives, do that. There can possibly be other applications. Since it is a toggling state, when one tries to turn it on, while it is already on, he could achieve exactly the opposite. Rather confusing. A visual, or otherwise, indication for the Mouse Keys state helps.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am currently using
one line script to print out X11 Mouse Keys (Wikipedia article). My one liner uses Conky's exec. Conky suggest the better approach of C/C++. I could try converting it to a C execve, or similar. But a better approach is, probably, X11 C code. I am not familiar with X11. But Conky already has related C++ code. x11.cc. It could be a related existing variable, namely keyboard_layout, is directly derived from that X11 code. x11.cc : print_keyboard_layout. By the output of
xset -q
I guess that other parts from the bottom of the x11.cc file are very close to obtaining the Mouse Keys status. Perhaps someone better acquainted can come up with a new mouse_keys Conky variable?One reason for me looking for such a variable is it being a moving target. By that I mean the Mouse Keys state can sometimes changed, usually from on to off, unexpectedly. I still not sure about the circumstances for those changes. I suspect important applications, such as Mozilla Firefox and its derivatives, do that. There can possibly be other applications. Since it is a toggling state, when one tries to turn it on, while it is already on, he could achieve exactly the opposite. Rather confusing. A visual, or otherwise, indication for the Mouse Keys state helps.
Beta Was this translation helpful? Give feedback.
All reactions