summaryrefslogtreecommitdiff
path: root/ar/.local/bin/statusbar/sb-brightness
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-01-11 06:25:59 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-01-11 06:25:59 +0900
commit3a284cc54c9bf33ed966def5fc975e901c266071 (patch)
treecb91f662411a9c81af288326eda0872984eb58d4 /ar/.local/bin/statusbar/sb-brightness
parenteeaa5670e9bbf54af3f5577f6631a72fb3d562de (diff)
modified bin/ovpn, modified statusbar/sb-brightness, modified statusbar/sb-internet
Diffstat (limited to 'ar/.local/bin/statusbar/sb-brightness')
-rwxr-xr-xar/.local/bin/statusbar/sb-brightness2
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