add base dotfiles
This commit is contained in:
commit
968449de49
31 changed files with 2121 additions and 0 deletions
9
.config/eww/scripts/brightnesslabel
Executable file
9
.config/eww/scripts/brightnesslabel
Executable 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%\")"
|
Loading…
Add table
Add a link
Reference in a new issue