Edit updater script
Cocmetic changes, anyway this script will be rebuild in future.
This commit is contained in:
parent
c1fa5863a8
commit
e35b32c884
@ -329,7 +329,7 @@ type = custom/script
|
|||||||
exec = ~/.scripts/update-check
|
exec = ~/.scripts/update-check
|
||||||
label = %output%
|
label = %output%
|
||||||
click-left = ~/.scripts/updater &
|
click-left = ~/.scripts/updater &
|
||||||
click-right = checkupdates | dmenu -l 30
|
click-right = pacman -Qu | dmenu -l 30
|
||||||
interval = 60
|
interval = 60
|
||||||
|
|
||||||
;~~~~~~~~~~~
|
;~~~~~~~~~~~
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/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
|
if [ -z "$CHECK" ]; then exit; fi
|
||||||
|
|
||||||
case "$CHECK" in
|
case "$CHECK" in
|
||||||
Yes)
|
Yes)
|
||||||
export PASS=$(printf | dmenu -P -p "Enter password: " -h 24)
|
export PASS=$(printf | dmenu -P -p "Enter password: " -h 24)
|
||||||
if [ -z "$PASS" ]; then exit; fi
|
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
|
*) exit
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user