e35b32c884
Cocmetic changes, anyway this script will be rebuild in future.
15 lines
432 B
Bash
Executable File
15 lines
432 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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 -Su --noconfirm';;
|
|
"Show packages")
|
|
pacman -Qu | dmenu -l 50 ;;
|
|
*) exit
|
|
esac
|