Re: OT: simplest way to display on-screen blinking colored indicator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux