> On Thu, 16 Apr 2020 14:54:29 -0000 "Doug Herr"
>
> Thanks, is the icon called On.desktop/Off.desktop in your example?
> 
> Can I get something like this on to my screen? I use openbox window manager 
> and no DE but
> that is likely irrelevant.

Actually, I see that I gave you an older version of my script. The current 
active one is below. It alters the panel launcher text file. It seems that Xfce 
desktop notices when launcher files change and will then update to show the 
changed icon pointer. I don't know how this would work for your setup tho...

#!/bin/sh

test=`grep -l 111.72.252.91 /etc/hosts`
if [ "$test" == "/etc/hosts" ];then
        # Ad blocking seems to be on right now:
        cp /home/doug/bin/adblocking.toggle-xfce4.unlocked 
/home/doug/.config/xfce4/panel/launcher-20/14063898372.desktop
        echo -n "" > /etc/hosts
        cp /etc/hosts.normal /etc/hosts
else
        # Ad blocking seems to be off right now:
        cp /home/doug/bin/adblocking.toggle-xfce4.locked 
/home/doug/.config/xfce4/panel/launcher-20/14063898372.desktop
        echo -n "" > /etc/hosts
        cp /etc/hosts.normal /etc/hosts
        cat /etc/hosts.adblocking >> /etc/hosts
fi
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to