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 | |
| parent | 99df28c440fd72ac391dc679ff3e4b8bd739a118 (diff) | |
modified bin/ovpn, modified statusbar/sb-brightness, modified statusbar/sb-internet
Diffstat (limited to 'ar/.local/bin')
| -rwxr-xr-x | ar/.local/bin/ovpn | 1 | ||||
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-brightness | 2 | ||||
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-internet | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/ar/.local/bin/ovpn b/ar/.local/bin/ovpn index a89c357..10ecc01 100755 --- a/ar/.local/bin/ovpn +++ b/ar/.local/bin/ovpn @@ -7,7 +7,6 @@ turnonoffvpn() { ;; *off*) nmcli connection down "$THESIAH_VPN" 2>/dev/null && notify-send "✂️ THESIAH_VPN: OFF" || notify-send "✂️ Error to disconnect" - ;; esac } 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 diff --git a/ar/.local/bin/statusbar/sb-internet b/ar/.local/bin/statusbar/sb-internet index 163b7b3..4dfb605 100755 --- a/ar/.local/bin/statusbar/sb-internet +++ b/ar/.local/bin/statusbar/sb-internet @@ -71,7 +71,7 @@ fi grep -q 'up' /sys/class/net/e*/operstate && ethericon="🌐" || ethericon="❎" # TUN -grep -q 'up' /sys/class/net/tun*/operstate 2>/dev/null && tunicon="🛰" +[ -n "$(cat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon="🛰" icons="" [ -n "$wifiicon" ] && icons="${icons}$wifiicon " |
