fix(waybar): Use SCRIPT_DIR envvar

This commit is contained in:
Tibo De Peuter 2025-10-08 10:09:05 +02:00
parent 411590d12c
commit d94e6ebf1d
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -122,10 +122,10 @@
},
"custom/toggle-light-dark": {
"exec": "bash ~/projects/sisyphus/scripts/toggle-light-dark.sh -g",
"exec": "bash ${SCRIPT_DIR}/toggle-light-dark.sh -g",
"interval": 60,
"return-type": "json",
"on-click": "bash ~/projects/sisyphus/scripts/toggle-light-dark.sh",
"on-click": "bash ${SCRIPT_DIR}/toggle-light-dark.sh",
"format": "{icon}",
"format-icons": {
"default": "\uf185",
@ -135,10 +135,10 @@
},
"custom/toggle-notifications": {
"exec": "bash ~/projects/sisyphus/scripts/toggle-notifications.sh -g",
"exec": "bash ${SCRIPT_DIR}/toggle-notifications.sh -g",
"interval": 60,
"return-type": "json",
"on-click": "bash ~/projects/sisyphus/scripts/toggle-notifications.sh",
"on-click": "bash ${SCRIPT_DIR}/toggle-notifications.sh",
"format": "{icon}",
"format-icons": {
"normal": "\uf0f3", /* */
@ -148,10 +148,10 @@
},
"custom/toggle-tailscale": {
"exec": "bash ~/projects/sisyphus/scripts/toggle-tailscale.sh -g",
"exec": "bash ${SCRIPT_DIR}/toggle-tailscale.sh -g",
"interval": 60,
"return-type": "json",
"on-click": "bash ~/projects/sisyphus/scripts/toggle-tailscale.sh",
"on-click": "bash ${SCRIPT_DIR}/toggle-tailscale.sh",
"format": "{icon}",
"format-icons": {
"disconnected": "\ue50b",