update zenUtils
This commit is contained in:
parent
c762b10e61
commit
21666c992a
3 changed files with 44 additions and 13 deletions
17
logout.sh
17
logout.sh
|
@ -9,7 +9,7 @@
|
||||||
# MIT License
|
# MIT License
|
||||||
|
|
||||||
menu() {
|
menu() {
|
||||||
dmenu "$@" -p "action >>>" -fn saucecodepronerdfont-9 -l 6 -nb black -nf grey50 -sb "#1f9b92" -sf black
|
dmenu "$@" -p "action >>>" -fn saucecodepronerdfont-9 -l 6 -nb black -nf "#c9c9c9" -sb "#1f9b92" -sf black
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,13 +29,14 @@ handler() {
|
||||||
zzz
|
zzz
|
||||||
;;
|
;;
|
||||||
logout)
|
logout)
|
||||||
if pgrep sddm-helper; then
|
# if pgrep sddm-helper; then
|
||||||
killall sddm-helper
|
# killall sddm-helper
|
||||||
elif pgrep ryudo; then
|
# elif pgrep ryudo; then
|
||||||
killall ryudo
|
# killall ryudo
|
||||||
else
|
# else
|
||||||
killall fluxbox
|
# killall fluxbox
|
||||||
fi
|
# fi
|
||||||
|
killall Xorg
|
||||||
;;
|
;;
|
||||||
hibernate)
|
hibernate)
|
||||||
ZZZ
|
ZZZ
|
||||||
|
|
30
sirius.sh
30
sirius.sh
|
@ -4,7 +4,37 @@
|
||||||
# Derek Stevens <nilix@nilfm.cc>
|
# Derek Stevens <nilix@nilfm.cc>
|
||||||
# MIT License
|
# MIT License
|
||||||
|
|
||||||
|
inbox=~/lib/mail/zoho/INBOX
|
||||||
|
|
||||||
|
if [ "$1" = "-s" ]; then
|
||||||
|
oldnew=$(\ls -1 ${inbox}/new | wc -l)
|
||||||
|
|
||||||
|
msg="syncing."
|
||||||
|
mbsync -a &
|
||||||
|
|
||||||
|
while pgrep mbsync; do
|
||||||
|
notify-send -c mail 'mail' "[${msg}]"
|
||||||
|
sleep 1
|
||||||
|
msg=${msg}.
|
||||||
|
done
|
||||||
|
newnew=$(\ls -1 ${inbox}/new | wc -l)
|
||||||
|
|
||||||
|
if [ ${newnew} -gt ${oldnew} ]; then
|
||||||
|
notify-send -c mail 'new mail' "[${newnew}]"
|
||||||
|
else
|
||||||
|
notify-send -c mail 'mail' "[sync complete]"
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
oldnew=0
|
||||||
while true; do
|
while true; do
|
||||||
mbsync -a
|
mbsync -a
|
||||||
|
newnew=$(\ls -1 ${inbox}/new | wc -l)
|
||||||
|
|
||||||
|
if [ ${newnew} -gt ${oldnew} ]; then
|
||||||
|
notify-send -c mail 'new mail' "[${newnew}]"
|
||||||
|
fi
|
||||||
|
oldnew=${newnew}
|
||||||
sleep 5m
|
sleep 5m
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
if [ "$1" = "-l" ]; then
|
if [ "$1" = "-l" ]; then
|
||||||
load=$(cat /proc/loadavg)
|
load=$(cat /proc/loadavg)
|
||||||
set -- ${load}
|
set -- ${load}
|
||||||
load=$3
|
load=$1
|
||||||
|
|
||||||
memdata=$(free -h --si | grep Mem)
|
memdata=$(free -h --si | grep Mem)
|
||||||
swapdata=$(free -h --si | grep Swap)
|
swapdata=$(free -h --si | grep Swap)
|
||||||
|
|
Loading…
Reference in a new issue