Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-07-24 15:42:17

Sasquach69
Member
Registered: 2023-05-04
Posts: 5

Generic Monitor

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

#2 2024-07-24 23:21:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: Generic Monitor

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 ---

Offline

#3 2024-07-25 07:58:26

Sasquach69
Member
Registered: 2023-05-04
Posts: 5

Re: Generic Monitor

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

#4 2024-07-25 13:50:27

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 528

Re: Generic Monitor

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.

https://forums.debian.net/viewtopic.php?t=152873


Siduction
Debian Sid
Xfce 4.18

Offline

#5 2024-07-25 15:11:46

Sasquach69
Member
Registered: 2023-05-04
Posts: 5

Re: Generic Monitor

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

#6 2024-07-25 15:58:05

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 528

Re: Generic Monitor

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

#7 2024-07-26 04:59:07

Sasquach69
Member
Registered: 2023-05-04
Posts: 5

Re: Generic Monitor

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

#8 2024-07-26 11:02:15

gogogadget
Member
Registered: 2023-03-19
Posts: 28

Re: Generic Monitor

eriefisher wrote:

It seems that the source code is gone now to. This may help out some.

https://forums.debian.net/viewtopic.php?t=152873

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 546.74 KiB (Peak: 547.59 KiB) ]