diff options
| author | Kunmun <kunmun@aospa.co> | 2024-07-07 17:31:33 +0530 |
|---|---|---|
| committer | Kunmun <kunmun@aospa.co> | 2024-07-07 17:49:27 +0530 |
| commit | a57352946786f0a3a915d30840be882f916f9094 (patch) | |
| tree | 82669bafa86fc391aef97912b410b6246fcd1685 | |
| parent | d7399e0d96cc68f8bc5b3203f74699ce50ac9944 (diff) | |
fix: Fixup waybar's integrated system updater module
Change-Id: Ie2834fa37982a691d43f7c6afcac1a723c4053d5
| -rw-r--r-- | config/waybar/modules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/waybar/modules b/config/waybar/modules index 3132cc46..b26f01b7 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", }, @@ -863,4 +863,4 @@ "interval": 86400, // once every day "tooltip": true, }, -}
\ No newline at end of file +} |
