You are not logged in.
Pages: 1
I just upgraded from Xubuntu 22.04 to 24.04. I installed xfce4-goodies to be able to use the generic monitor to display caps and keylock status with the script I had been using before which is here:
#!/bin/bash
status1=$(xset -q | grep Caps | awk '{print $2,$4}')
status2=$(xset -q | grep Caps | awk '{print $6, $8}')
PANEL=" $status1 \n $status2 "; echo -e "${PANEL}"
Pointing the monitor plugin at this script worked fine in 22.04. In 24.04, it says command not found for each line. Did they move something in this new version?
Offline
Yes there were some changes, but it shouldn't affect this script. What happens if you run this script manually in a terminal window? Does it work?
Edit: if it does work manually, make sure you have the full path to the script listed in the genmon properties.
Last edited by ToZ (2024-07-24 23:24:39)
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Online
I found an old copy from a back up file. I had the syntax wrong. It should be:
#!/bin/bash
status1=$(xset -q | grep Caps | awk '{print $2,$4}')
status2=$(xset -q | grep Caps | awk '{print $6,$8}')
PANEL="<txt> $status1 \n $status2 </txt>"; echo -e "${PANEL}"
This still works as an executable script with the panel item "Generic Monitor". Thanks for your time.
Offline
The plugin was dropped from Goodies sometime ago but you could still get the source for a long time and compile it. It worked just fine a few years ago. It seems that the source code is gone now to. This may help out some.
Siduction
Debian Sid
Xfce 4.18
Offline
I just installed a fresh version of Xubuntu 24.04 on a blank drive and then installed goodies. I have Generic Monitor with no other install or coding. So it must be back.
Offline
I was referring to the cap/scroll/num lock plugin. I don't think genmon was ever removed.
Siduction
Debian Sid
Xfce 4.18
Offline
Good point. I just thought I would post this version of my script in case anyone wants or still uses scroll lock as well.
#!/bin/bash
status1=$(xset -q | grep Caps | awk '{print $2,$4}')
status2=$(xset -q | grep Caps | awk '{print $6,$8}')
status3=$(xset -q | grep Caps | awk '{print $10, $12}')
PANEL="<txt> $status1 $status2 $status3 </txt>"; echo -e "${PANEL}"
Issue solved.
Offline
It seems that the source code is gone now to. This may help out some.
It was not maintained for a couple of years, but it came back to life few months ago.
It's in the AUR for Arch based distros. It's the github repo mentioned in the last post of your link.
Repository : aur
Name : xfce4-kbdleds-plugin
Version : 0.3.0-1
Description : Xfce keyboard LEDs panel plugin
URL : https://github.com/oco2000/xfce4-kbdleds-plugin
I also had a generic monitor+script as replacement.
EndeavourOS
Xfce+gtk3-classic (no CSD)+Picom
Offline
Pages: 1
[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 546.57 KiB (Peak: 547.41 KiB) ]