How to add an UFW status icon to the panel

#1

With this recipe you can add an icon to your panel showing the state of UFW.
gufw_icon
Requisites , install yad and gufw

sudo pacman -S yad gufw

Then copy this bash script:

to some directory (example /home/$USER/Documents)

cd /home/${USER}/Documents
wget https://github.com/juanmafont/ufwIconbar/raw/master/gufw_icon.sh

then

chmod +x gufw_icon.sh

and goto settings->session and startup->application autostart->add

Name: UFW icon
Description: Will show an icon on status bar with state of UFW
Command: /home/username/Documents/gufw_icon.sh

Note: above, substitute “username” with your username, to know your username open terminal and enter : echo $USER

Finally, logout and login again… you will see an new icon showing the state of your firewall (UFW)

Note: I’m using MOKA icon theme. The icon theme you use must have two icons named:
security-high and security-low

You can select the icon you prefer changing lines into script. See where is said “security-high” and “security-low” and replace it with your favourite icon (use full path is needed)

Note: If you click over the icon, gufw gui will be launch :wink:

6 Likes
Create KDE "program status" widget?
Open GUFW at startup without having to enter password?
yad: error while loading shared libraries
Create KDE "program status" widget?
New to the forum, introduce yourself
#2

This should probably be in:

https://forum.manjaro.org/c/technical-issues-and-assistance/tutorials

#3

Yes, I try it, but I can create new tutorial, not enough rights… :wink:

Please, if anyone can move it to tutorials I would appreciate it.

SECOND: Can someone change the title topic to " How to add an UFW status icon to the panel bar"

Thanks.

#4

Renamed thread, almost as requested. :grinning:

1 Like
closed #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.