watchit hides cursor now

This commit is contained in:
Alexander Bocken 2020-09-24 22:59:47 +02:00
parent 4cddd2ad4a
commit 272b158a02
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
2 changed files with 11 additions and 10 deletions

View File

@ -1,9 +0,0 @@
#!/bin/sh
printf "Beginning upgrade.\\n"
yay -Qyu
pkill -RTMIN+8 i3blocks
printf "\\nUpgrade complete.\\nPress <Enter> to exit window.\\n\\n"
read -r

View File

@ -1,8 +1,17 @@
#!/bin/sh #!/bin/bash
HOME=$(tput cup 0 0) HOME=$(tput cup 0 0)
ED=$(tput ed) ED=$(tput ed)
EL=$(tput el) EL=$(tput el)
printf '%s%s' "$HOME" "$ED" printf '%s%s' "$HOME" "$ED"
cleanup(){
tput cnorm
exit
}
trap cleanup INT
tput civis
while true while true
do do
ROWS=$(tput lines) ROWS=$(tput lines)
@ -14,3 +23,4 @@ do
printf '%s%s' "$ED" "$HOME" printf '%s%s' "$ED" "$HOME"
sleep 0.2 sleep 0.2
done done
tput cnorm