Instead of hardcoding the paths of all the scripts, use env variables
that are set in launch.sh. This way the config also works with
XDG_CONFIG_HOME not set to ~/.config.
Sadly polybar only accepts references that stand on their own.
(So something like ${env:XDG_CONFIG_HOME:~/.config}/polybar/<script>
does not work.) Hence the mess with the associative array and the
variables for every module.
4 lines
50 B
Bash
Executable File
4 lines
50 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo $(curl -s https://ipinfo.io/ip)
|