This commit is contained in:
parent
ce19d6a62c
commit
624ab42f73
26 changed files with 493 additions and 163 deletions
|
|
@ -38,10 +38,10 @@ for battery_path in /sys/class/power_supply/!(AC*); do
|
|||
*) status_symbol="?? " ;;
|
||||
esac
|
||||
|
||||
if [ "$capacity" -eq 100 ]; then
|
||||
status_symbol=" "
|
||||
elif [ -n "${custom_icons[$device_name]}" ]; then
|
||||
if [ -n "${custom_icons[$device_name]}" ]; then
|
||||
status_symbol="${custom_icons["$device_name"]}"
|
||||
elif [ "$capacity" -eq 100 ]; then
|
||||
status_symbol=" "
|
||||
elif [[ "$status" = "Discharging" && "$capacity" -le 20 ]]; then
|
||||
status_symbol="❗"
|
||||
[ -n "$sep" ] && sep="" || sep=" ";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
[ -f "${HOME}/.local/state/.vpn_loading" ] && {
|
||||
echo 'Loading...'
|
||||
exit 0
|
||||
}
|
||||
|
||||
PIPE="/var/run/vpnd.sock"
|
||||
send_cmd() {
|
||||
|
|
@ -16,4 +20,11 @@ esac
|
|||
|
||||
if [ -n "$IFNAME" ]; then
|
||||
echo " $IFNAME"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
DEFAULT_LINK="$(resolvectl status | grep 'Default Route: yes' -B10 | grep 'Link' | tail -1 | grep -Eo '\(.*\)' | tr -d '()')"
|
||||
|
||||
if resolvectl domain "$DEFAULT_LINK" | grep -q 'wzray.com'; then
|
||||
[ "$(ssh router vpn status laptop 2>/dev/null)" = '1' ] && echo " Local"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue