From 92f7e4c9c1fc48805e950e4809158af9749ddaf9 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 9 Jul 2024 21:29:12 +0900 Subject: [PATCH] updated waybar update for arch linux --- config/waybar/modules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/waybar/modules b/config/waybar/modules index 3132cc4..57393c0 100644 --- a/config/waybar/modules +++ b/config/waybar/modules @@ -707,7 +707,7 @@ "exec": "checkupdates | wc -l", "exec-if": "[[ $(checkupdates | wc -l) ]]", "interval": 15, - "on-click": "kitty -T update paru -Syu || yay -Syu && notify-send 'The system has been updated'", + "on-click": "if command -v paru &> /dev/null; then kitty -T update paru -Syu; else kitty -T update yay -Syu; fi && notify-send 'The system has been updated'", "tooltip": true, "tooltip-format": "Left Click: Update System\nArch Linux Only", },