Compare commits

..

2 Commits

Author SHA1 Message Date
3153ca6041
battwatch.sh: added 2023-06-12 15:33:28 -04:00
c6227f097c
nvim: added not-inline math macro 2023-06-12 15:32:58 -04:00
2 changed files with 15 additions and 0 deletions

View File

@ -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}]

View 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