Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] simpler way to update vars via different user like root #1172

Open
x70b1 opened this issue Aug 26, 2024 · 0 comments
Open

[FEATURE] simpler way to update vars via different user like root #1172

x70b1 opened this issue Aug 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@x70b1
Copy link

x70b1 commented Aug 26, 2024

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.

@x70b1 x70b1 added the enhancement New feature or request label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@x70b1 and others