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

How to call system environment variables in the waybar configuration file? #3699

Open
pengshp opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@pengshp
Copy link

pengshp commented Oct 18, 2024

My MPD is started using the socket method, it is listenning ${XDG_RUNTIME_DIR}/mpd/socket
In the server field of the mpd module, I want to use the system environment variable$XDG_RUNTIME_DIR, how to write the configuration item?

systemctl --user status mpd.socket
● mpd.socket
     Loaded: loaded (/usr/lib/systemd/user/mpd.socket; enabled; preset: enabled)
     Active: active (listening) since Sat 2024-10-19 05:36:00 CST; 17s ago
 Invocation: 1bda14c942b7457c9d9948fc25830b1a
   Triggers: ● mpd.service
     Listen: /run/user/1003/mpd/socket (Stream)

$XDG_RUNTIME_DIR = /run/user/1003

"mpd": {
        "server": "??????",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant