1
0
Fork 0

add base dotfiles

This commit is contained in:
Lucas Sta Maria 2022-03-20 03:19:38 -04:00
commit 968449de49
No known key found for this signature in database
GPG key ID: 4B9481F3C5068E2E
31 changed files with 2121 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
level=$(brightnessctl get)
max=$(brightnessctl max)
raw_percent=$(echo "scale=2 ; $level / $max" | bc)
percent=$(echo "$raw_percent*100" | bc)
final_percent=${percent%.*}
echo "(label :class \"brightness__label\" :text \"$final_percent%\")"