Re: [qubes-users] Custom Indicator

2018-12-06 Thread Ivan Mitev




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

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/3a4fb926-b33a-3a9c-1a9b-5440c99c7cfe%40maa.bz.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Custom Indicator

2018-12-06 Thread Stuart Perkins
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

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20181206101811.269b9bf5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.