Bash tool for placing the taskbar icon?

I am trying to create a tiny application on my Ubuntu machine. What I want to do is placed in the taskbar icon next to the volume and Internet connection settings. I understand that in bash there is a notify-send command that I can use, or even switch to Qt , but this seems to be redundant for the problem. Specifically, is there a way to create an icon on the Ubuntu taskbar using bash and periodically change color or text?

+7
linux bash
source share
1 answer

For a very convenient way to quickly access applications in the tray, use yad (in particular, yad --notification ). It allows you to dynamically change icons, set click event handlers, and create a custom context menu. For example:

 yad --notification --command='echo hello world' --image=myicon.png 

β€œHello world” will be displayed when pressed. Or:

 yad --notification --command='echo hello world' --image=myicon.png --listen 

It will read standard input, waiting for commands to change icons, change visibility, open menus, trigger actions, etc.

+6
source share

All Articles