Add old dotfiles

This commit is contained in:
venomade committed 2025-02-27 17:06:42 +00:00
commit 1cace80e48
192 files changed
+13538

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
# Get the current brightness level as a percentage
brightness=$(brightnessctl g)
max_brightness=$(brightnessctl m)
# Perform float division and store the result with 2 decimal points
result=$(awk "BEGIN { printf \"%.2f\", $brightness / $max_brightness }")
# Convert the result to a percentage (multiply by 100) and round to the nearest whole number
percentage=$(awk "BEGIN { printf \"%.0f\", $result * 100 }")
# Set the icon based on the brightness level
if [ $percentage -le 33 ]; then
icon="󰃞"
elif [ $percentage -le 66 ]; then
icon="󰃟"
else
icon="󰃠"
fi
echo "$icon $percentage%"