Moving files:

This commit is contained in:
Antoine Phan
2024-07-27 00:06:16 +07:00
parent 9716a8df5a
commit 0cd53e0b65
260 changed files with 0 additions and 0 deletions

29
i3blocks/brightness.sh Normal file
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% "