Compare commits
2 Commits
083aa183eb
...
3153ca6041
Author | SHA1 | Date | |
---|---|---|---|
3153ca6041 | |||
c6227f097c |
@ -47,6 +47,9 @@ endsnippet
|
|||||||
snippet im "inline math" w
|
snippet im "inline math" w
|
||||||
\$${1:${VISUAL}}\$
|
\$${1:${VISUAL}}\$
|
||||||
endsnippet
|
endsnippet
|
||||||
|
snippet mm "block math" w
|
||||||
|
\$ ${1:${VISUAL}} \$
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet link "link" w
|
snippet link "link" w
|
||||||
#link("${1}")[${2}]
|
#link("${1}")[${2}]
|
||||||
|
12
src/.local/bin/deskutils/battwatch.sh
Executable file
12
src/.local/bin/deskutils/battwatch.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# i didn't *really* feel like having a cronjob for this so
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
BAT="$(acpi -b | head -n 1 | awk -F'[,:]' '{print $3}' | tr -d '[:space:]%')"
|
||||||
|
if [ "$BAT" -lt "10" ]; then
|
||||||
|
notify-send -u critical -a battery "currently at $BAT%"
|
||||||
|
elif [ "$BAT" -lt "20" ]; then
|
||||||
|
notify-send -a battery "currently at $BAT%"
|
||||||
|
fi
|
||||||
|
sleep 240
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user