11-14-2016, 09:56 AM
Hi to everyone,
I propose a little modification in .conky/widget file. With current configuration, if you are logged on many tty (or x-terminal) conky reports your login for any login you made, with a terrible 'look&feel'.
![[Image: 9nhInTE.jpg]](http://i.imgur.com/9nhInTE.jpg)
To modify this behaviour, I've made a little script, and saved it as "userlog.sh" in ~/.conky/userlog.sh.
Then, I modified ~/.conky/widget as described below:
At picture below you can see the final result.
![[Image: JHwCNdz.jpg]](http://i.imgur.com/JHwCNdz.jpg)
Hope you'll appreciate.
Franco 'frakbe'
I propose a little modification in .conky/widget file. With current configuration, if you are logged on many tty (or x-terminal) conky reports your login for any login you made, with a terrible 'look&feel'.
![[Image: 9nhInTE.jpg]](http://i.imgur.com/9nhInTE.jpg)
To modify this behaviour, I've made a little script, and saved it as "userlog.sh" in ~/.conky/userlog.sh.
Code:
~$ cat .conky/userlog.sh
#!/bin/bash
users|tr ' ' '\n'|sort -u|tr '\n' ' '
Code:
~$ diff .conky/widget.orig .conky/widget
122c122,123
< ${color}Logged in as: ${alignr}${color}${user_names}
---
> #${color}Logged in as: ${alignr}${color}${user_names}
> ${color}Logged in as: ${alignr}${execi 10 ~/.conky/userlog.sh}
At picture below you can see the final result.
![[Image: JHwCNdz.jpg]](http://i.imgur.com/JHwCNdz.jpg)
Hope you'll appreciate.
Franco 'frakbe'