budlabs / genmonify

helper script for xfce4-panel plugin genmon
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

[Ferature request] add examples. #7

Closed dreirund closed 2 years ago

dreirund commented 2 years ago

Ahoj,

thanks for this software.

I did not really work out how this exactly works.

I suggest a feature request for the documentation to add examples:

For me it is not clear what holds as a valid "module" for genmon; xfce4-genmon-plugin is a plugin which just shows stdout of a command one can specify manually so I can enter any complex command I want in the preferences dialogue of the plugin.

Regards!

budRich commented 2 years ago

there is a guide (2 steps) and an example in the readme.

One thing I use this for is to display the window title of the active window. Sure i could do this by just adding a command in genmon which would output the active window title. But the problem is that genmon works on a set interval, and i don't want to check for and print the window title every second, that would be wasteful, and also get weird if the title changes faster than than the interval. Instead I have a script that watches for window title/focus change and when that occurs it triggers genmonify -o windowtitle "$title".

2022-06-15-12:06:23