From 48e4428bfa5cb99d4e0a9aab055b24a9f1520d70 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 27 Feb 2025 12:05:27 +0900 Subject: added support for other distros on waybar update button. NOTE: untested still on --- config/waybar/ModulesCustom | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'config/waybar/ModulesCustom') diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index 9237af27..fc26cfed 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -161,15 +161,16 @@ "on-click-right": "swaync-client -d -sw", "escape": true, }, -// NOTE:! This is only for Arch and Arch Based Distros depend: pacman-contrib +// NOTE:! This is mainly for Arch and Arch Based Distros depend: pacman-contrib +// Other Distro dont have notifications but can use to check for update for any other distro "custom/updater": { "format": " {}", "exec": "checkupdates | wc -l", "exec-if": "[[ $(checkupdates | wc -l) ]]", - "interval": 15, - "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'", + "interval": 43200, // (Arch Linux will try to check 12 hrs interval only + "on-click": "$HOME/.config/hypr/scripts/Distro_update.sh", "tooltip": true, - "tooltip-format": "Left Click: Update System\nArch Linux Only", + "tooltip-format": "Left Click: Update System\nArch (w/ notification)\nFedora, OpenSuse, Debian/Ubuntu click to update", }, // Separators "custom/separator#dot": { -- cgit v1.2.3