[FEATURE] simpler way to update vars via different user like root
Opened this issue · 0 comments
x70b1 commented
Description of the requested feature
I can use eww update ..
to update vars on my bar. This is easy if I execute the command with the same user. Thats great.
However, if I am a different user, I would also like to update the values of a “foreign” bar.
Example: I use scripts that are executed by udev and are executed as root. I could now switch the desktop user and set up all environment vars and run eww
update. This is a lot of work if you want to make the execution fast and easy to avoid too much overhead.
The following as root works to update a "user" bar.
export XDG_CACHE_HOME=/home/user/.cache
export XDG_RUNTIME_DIR=/run/user/1000
eww -c /home/user/.config/eww update --debug poll_backlight="whatever"
But it seems more like a workaround. I set the env vars and have to use -c
to get it working.