Waybar
Waybar copied to clipboard
use parameter in waybar/config for custom module ?
i use waybar in dwl with (https://codeberg.org/fauxmight/waybar-dwl/src/branch/main/waybar-dwl.sh).
the script use waybar custom modules;
the problem is , the script hardcodes the file name /path/to/waybar-dwl.sh in ~/.config/waybar/config.
If i run multiple instances of dwl, i need multiple ~/.cache/dwltags file name, for example, i may use the pid of waybar in filename: ~/.cache/dwltags_waybarPID.
So, in ~/.config/waybar/config, i need to pass something like PID to /path/to/waybar-dwl.sh, is it possible to do this? how ?