💄 Added nerdicons to scripts
This commit is contained in:
parent
a852bd47df
commit
ac9b042fa9
5 changed files with 13 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
while true ; do
|
||||
PWRLVL=$(cat /sys/class/power_supply/BAT1/capacity)
|
||||
if [ "$PWRLVL" -le 15 ] ; then
|
||||
notify-send "Battery is at 15%!!";
|
||||
notify-send " Battery is at 15%!!";
|
||||
sleep 300s;
|
||||
else
|
||||
sleep 60s;
|
||||
|
|
|
|||
|
|
@ -325,13 +325,13 @@ else
|
|||
|
||||
# Let the user know what is staged for commit
|
||||
if [[ $newfiles ]]; then
|
||||
echo "${txtgreen}ADDED: ${txtgreen}$newfiles"
|
||||
echo "${txtgreen} ADDED: ${txtgreen}$newfiles"
|
||||
fi
|
||||
if [[ $modified ]]; then
|
||||
echo "${txtblue}MODIFIED: ${txtblue}$modified"
|
||||
echo "${txtblue}פֿ MODIFIED: ${txtblue}$modified"
|
||||
fi
|
||||
if [[ $deleted ]]; then
|
||||
echo "${txtred}DELETED: ${txtred}$deleted"
|
||||
echo "${txtred} DELETED: ${txtred}$deleted"
|
||||
fi
|
||||
|
||||
while true
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ set -e
|
|||
|
||||
# For styling/colorizing output
|
||||
txtbld=$(tput bold)
|
||||
txtgreen=${txtbld}$(tput setaf 2)
|
||||
txtred=${txtbld}$(tput setaf 1)
|
||||
txtwhite=${txtbld}$(tput setaf 7)
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ function dependencycheck()
|
|||
|
||||
for ((i = 0; i < numdependencies; i++)) ; do
|
||||
if ! command -v "${dependencies[$i]}" &> /dev/null ; then
|
||||
echo "${txtred}dependency not met: ${dependencies[$i]}${txtwhite}"
|
||||
echo "${txtred} dependency not met: ${dependencies[$i]}${txtwhite}"
|
||||
missingdependencies=$((missingdependencies+1))
|
||||
fi
|
||||
done
|
||||
|
|
@ -25,6 +26,9 @@ function dependencycheck()
|
|||
if [ $missingdependencies -gt 0 ] ; then
|
||||
echo "${txtred}Please install needed dependencies${txtwhite}"
|
||||
exit 1
|
||||
# comment out if using in other scripts
|
||||
else
|
||||
echo "${txtgreen} All dependencies met!"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue