t-wissmann / barpyrus

A python wrapper for lemonbar
Other
33 stars 7 forks source link

Add simple TrayerWidget #6

Closed preisi closed 5 years ago

preisi commented 5 years ago

This PR adds a new TrayerWidget to incorporate the system tray utility 'trayer' into barpyrus. As of now it supports all screen corners as positions on the bar, any other position might need further work.

The TrayerWidget itself instantiates a TrayerWatch object to start the trayer process and a new X connection. It is then used to passively watch for any updates of the trayer regarding its width using already existing mechanisms of barpyrus.

t-wissmann commented 5 years ago

The downside of trayer is that it only works if the panel (and thus also the trayer) is properly in the edge of a physical monitor maybe we can move it manually via python-xlib or use stalonetray instead. But all this can be done in a future PR.

I suggest to merge this PR as it is and make some more addjustments in the future to make it more configurable.