Adding lots of cool stuff to dotfiles

This commit is contained in:
Antoine Phan
2024-02-29 01:00:26 -05:00
parent b5ad2b6c39
commit dd2ef8ddac
390 changed files with 35966 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
#!/bin/bash
current=$(brightnessctl g)
max=$(brightnessctl m)
percentage=$(printf "%3s" $((100 * current / max)))
if [[ $percentage -eq 100 ]]
then
ICON="🎑"
elif (( $percentage >= 75 ))
then
ICON="🌕"
elif (( $percentage >= 50 ))
then
ICON="🌖"
elif (( $percentage >= 25 ))
then
ICON="🌗"
elif (( $percentage >= 10 ))
then
ICON="🌘"
elif (( $percentage >= 0 ))
then
ICON="🌑"
else
ICON="🌚"
fi
echo "$ICON $percentage% "