diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-09-05 00:25:57 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-09-05 00:25:57 +0400 |
commit | 556a9f4b2a4ce8305afe6e20be8014aa8bce97cd (patch) | |
tree | d923bca2e18aabbd9ad43926c9ed51670f0242be | |
parent | a0d3f992bc08522eebb15f8cb71a3ae8ec4ecd77 (diff) |
slight: print current brightness bug fixed
-rwxr-xr-x | scripts/slight | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/slight b/scripts/slight index ab79c31..7f1b03a 100755 --- a/scripts/slight +++ b/scripts/slight @@ -57,7 +57,7 @@ while getopts "i:d:s:ph" option; do "${0}: Failed to set brightness" ;; p) - if ! echo $(( `brightnessctl g` / `brightnessctl m` * 100 )); then + if ! echo $(( (`brightnessctl g` * 100) / `brightnessctl m` )); then err "Failed to get current brightness" else exit 0 |