From 72dbc022cd2d544f3a4d9bd6d339760e93a1bbe4 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Mon, 11 May 2020 10:56:37 +0200 Subject: [PATCH] Edit 'update' script --- .local/bin/scripts/{updater => update} | 4 ++-- .local/bin/scripts/update-check | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) rename .local/bin/scripts/{updater => update} (53%) delete mode 100755 .local/bin/scripts/update-check diff --git a/.local/bin/scripts/updater b/.local/bin/scripts/update similarity index 53% rename from .local/bin/scripts/updater rename to .local/bin/scripts/update index 3cdd386..47b95f9 100755 --- a/.local/bin/scripts/updater +++ b/.local/bin/scripts/update @@ -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 diff --git a/.local/bin/scripts/update-check b/.local/bin/scripts/update-check deleted file mode 100755 index 394ee02..0000000 --- a/.local/bin/scripts/update-check +++ /dev/null @@ -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