Right click on panel: "Add New" ...
Command:
Code: Select all
sh -c 'xset -q | grep Caps'
Code: Select all
sh -c 'xset -q | grep Caps'
Yes. Use Xfce's builtin keyboard-layout panel plugin.notfound wrote: Sat Nov 11, 2023 1:14 pm I recently did a new install of MX 23.1 because it was time to upgrade from 19... and I used to use "indicator-keylock" to show a notification whenever Caps Lock was pressed. It showed whether it was on or off, and was extremely useful. Although it seems to not be available any longer. I can't get the repository to work.
Is there any way to have a simple indicator for if Caps Lock is on or off?
Good found:i_ri wrote: Sat Nov 11, 2023 10:51 pm Hello everyone
MXRobo gave the download link to indicator-keylock Version: 3.1.1-0~mx21+1
by MXRobo » Sat Nov 11, 2023 5:06 pm
https://mxrepo.com/MX21packages.html
install 3.1.1-0~mx21+1 this .deb onto MX23; it did not indicate any needed dependencies; it went right on, on its own.
tried it; it works. it is on two mxfluxbox that have one xfce4-notifyd and one ukui notifications, so it is pretty.
conky can use $key_caps_lock
caps lock ${key_caps_lock}
Conky Variables [https://conky.cc/variables] wrote:
${key_caps_lock}
An indicator for Capital Lock key.
${key_num_lock}
An indicator for Number Lock key.
For Wayland.MXRobo wrote: Sun Nov 12, 2023 9:16 am I have not tried this, but possibly, and if it works, it should supply true notifications.
https://www.reddit.com/r/wayland/commen ... ?rdt=45177
Fluxbox would need to be completely rebuilt from scratch
Code: Select all
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/Caps_Lock -n -t string -s 'sh -c '\''sleep 0.2; notify-send -t 5000 -i caps-lock "Caps Lock" $(xset -q | grep -oP "Caps Lock:\s*\K(off|on)")'\'''
Code: Select all
sh -c 'sleep 0.2; notify-send -t 5000 -i caps-lock "Caps Lock" $(xset -q | grep -oP "Caps Lock:\s*\K(off|on)")'