Custom Indicator

27 views
Skip to first unread message

Stuart Perkins

unread,
Dec 6, 2018, 11:18:19 AM12/6/18
to qubes-users
List. I'm using Qubes 3.2/XFCE4 and I want to add an indicator to show a status based on the contents of a file in dom0.

I can set the contents of the file to 1 or 0, Yes or No, etc...from the vm where I am running a VPN connection. I want the panel to indicate if I am running the VPN connection or not.

I have tried the "Generic Monitor" which allegedly shows the output of a command, as it would be logical to cat the file with a certain frequency and update the displayed results, but the only thing the "Generic Monitor" displays is the label given it.

Are there other options which will actually function?

Thanks in advance.

Stuart

Ivan Mitev

unread,
Dec 6, 2018, 1:20:48 PM12/6/18
to qubes...@googlegroups.com


On 12/6/18 6:18 PM, Stuart Perkins wrote:
> List. I'm using Qubes 3.2/XFCE4 and I want to add an indicator to show a status based on the contents of a file in dom0.
>
> I can set the contents of the file to 1 or 0, Yes or No, etc...from the vm where I am running a VPN connection. I want the panel to indicate if I am running the VPN connection or not.
>
> I have tried the "Generic Monitor" which allegedly shows the output of a command, as it would be logical to cat the file with a certain frequency and update the displayed results, but the only thing the "Generic Monitor" displays is the label given it.

You can't `cat` a file, the command you configure in the applet has to
be an executable. You also have to specify the full path, '~' or $HOME
won't work.

Here's for instance the output of a script that displays my batteries'
status + current power:

dom0 $ ~/bin/batstat

65 | 79
30 | 34
P: 6.9

The script is configured as `/home/user/bin/batstat` in the applet.

(I'm on R4 but I think I used to have the same setup with R3.2).

Reply all
Reply to author
Forward
0 new messages