Edit 'update' script

This commit is contained in:
Wiktor Zykubek 2020-05-11 10:56:37 +02:00
parent a8eebb5827
commit 72dbc022cd
2 changed files with 2 additions and 12 deletions

View File

@ -1,13 +1,13 @@
#!/bin/sh
CHECK="$(printf "Yes\nNo\nShow packages" | dmenu -i -p 'Do you want to make packages update?' -h 24)"
CHECK="$(printf "Yes\nNo\nShow packages" | rofi -dmenu -i -p 'Do you want to make packages update?' -l 3)"
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';;
st -e sh -c 'echo $PASS | sudo -S -v && clear; sudo pacman -Su --noconfirm';;
"Show packages")
pacman -Qu | dmenu -l 50 ;;
*) exit

View File

@ -1,10 +0,0 @@
#!/bin/bash
# killall wificheck.sh &> /dev/null
if ping -w 1 archlinux.org &> /dev/null
then
printf "$(checkupdates | wc -l)"
else
echo "  "
fi