diff options
author | ryo <ryo@nopwd.lol> | 2024-10-30 20:10:03 +0000 |
---|---|---|
committer | ryo <ryo@nopwd.lol> | 2024-10-30 20:10:03 +0000 |
commit | cc6d6fcfc6e8403e87dae9f092e61f0edf8e3cc6 (patch) | |
tree | f7f751a92c30b5ef7cf8770004c30479c516fdca /config/i3blocks/scripts/brightness |
Initial commit
Diffstat (limited to 'config/i3blocks/scripts/brightness')
-rwxr-xr-x | config/i3blocks/scripts/brightness | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/i3blocks/scripts/brightness b/config/i3blocks/scripts/brightness new file mode 100755 index 0000000..9dc4e5b --- /dev/null +++ b/config/i3blocks/scripts/brightness @@ -0,0 +1,7 @@ +#!/usr/bin/env dash + +bcur=$(brightnessctl get) +bmax=$(brightnessctl max) +percent=$(echo "$bcur $bmax" | awk '{print int(($1/$2)*100)}') + +echo ": $percent%" |