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 | aeb1ca1667a2abe1a4052d914295458b2691dd92 (patch) | |
| tree | d455195eaf649fd8546925f0785f75ee1660c01b /ar/.local/bin/statusbar/sb-brightness | |
| parent | 99df28c440fd72ac391dc679ff3e4b8bd739a118 (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 |
