diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-11 06:25:59 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-11 06:25:59 +0900 |
| commit | 3a284cc54c9bf33ed966def5fc975e901c266071 (patch) | |
| tree | cb91f662411a9c81af288326eda0872984eb58d4 /ar/.local/bin/statusbar/sb-brightness | |
| parent | eeaa5670e9bbf54af3f5577f6631a72fb3d562de (diff) | |
modified bin/ovpn, modified statusbar/sb-brightness, modified statusbar/sb-internet
Diffstat (limited to 'ar/.local/bin/statusbar/sb-brightness')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-brightness | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ar/.local/bin/statusbar/sb-brightness b/ar/.local/bin/statusbar/sb-brightness index 625e69e..e18fa2c 100755 --- a/ar/.local/bin/statusbar/sb-brightness +++ b/ar/.local/bin/statusbar/sb-brightness @@ -5,7 +5,7 @@ monitor=$(xrandr --query | grep -i '\sconnected' | grep '[0-9]x[0-9]' | grep -i case "$monitor" in *DP* | *HDMI*) current_brightness=$(xrandr --verbose | grep -i "^$monitor connected" -A5 | grep -i "Brightness:" | cut -d ' ' -f2) - current_brightness=$(echo "$current_brightness * 100" | bc -l) + current_brightness=$(printf "%.0f\n" "$(echo "$current_brightness * 100" | bc -l)") ;; esac |
