diff --git a/botfiles/.config/polybar/config.pc b/botfiles/.config/polybar/config.pc index 3a9832e..6cb9e8b 100644 --- a/botfiles/.config/polybar/config.pc +++ b/botfiles/.config/polybar/config.pc @@ -329,7 +329,7 @@ type = custom/script exec = ~/.scripts/update-check label =  %output% click-left = ~/.scripts/updater & -click-right = checkupdates | dmenu -l 30 +click-right = pacman -Qu | dmenu -l 30 interval = 60 ;~~~~~~~~~~~ diff --git a/botfiles/.scripts/updater b/botfiles/.scripts/updater index a2c4edf..3cdd386 100755 --- a/botfiles/.scripts/updater +++ b/botfiles/.scripts/updater @@ -1,12 +1,14 @@ #!/bin/sh -CHECK="$(printf "Yes\nNo\n" | dmenu -i -p 'Do you want to make packages update?' -h 24)" +CHECK="$(printf "Yes\nNo\nShow packages" | dmenu -i -p 'Do you want to make packages update?' -h 24)" if [ -z "$CHECK" ]; then exit; fi case "$CHECK" in Yes) export PASS=$(printf | dmenu -P -p "Enter password: " -h 24) if [ -z "$PASS" ]; then exit; fi - st -e sh -c 'bspc node -d '^10'; echo $PASS | sudo -S -v && clear; sudo pacman -Syu --noconfirm';; + st -e sh -c 'bspc node -d '^10'; echo $PASS | sudo -S -v && clear; sudo pacman -Su --noconfirm';; + "Show packages") + pacman -Qu | dmenu -l 50 ;; *) exit esac