11-24-2016, 03:22 PM
I have tried a variety of scripts with conditionals, attempting to get the {user_name} to display root when sudo is used. $USER will only display the user name logged in from lightdm login. I intend to fix this. When the terminal goes to sudo I want Conky to change the name to root or sudo, or at least add a warning message. I think the {uid_name} function might do this with an {if_match} conditional but I haven't got it working yet. It is definitely in the works for me though. May have to root the whole widget with user permission to enable on/off. As you know this is problematic with "ioctl" error reporting in root, which is not a good fix because every ssh and bashrc config file has to match with root. Ubuntu thing.
TC
TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.