added check to custom polybar modules
This commit is contained in:
parent
fcdfb47b0d
commit
697d25ae0a
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if which rfkill >/dev/null && [[ -f /dev/rfkill ]]; then
|
||||||
if rfkill list bluetooth | grep "yes" >/dev/null; then
|
if rfkill list bluetooth | grep "yes" >/dev/null; then
|
||||||
if [[ "$1" == "toggle" ]]; then
|
if [[ "$1" == "toggle" ]]; then
|
||||||
rfkill unblock bluetooth
|
rfkill unblock bluetooth
|
||||||
|
@ -11,4 +12,5 @@ else
|
||||||
fi
|
fi
|
||||||
echo "$ICO_BLU_ON"
|
echo "$ICO_BLU_ON"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if which openvpn >/dev/null; then
|
||||||
if ! pgrep "openvpn" &>/dev/null || ! ip link | grep -q tun; then
|
if ! pgrep "openvpn" &>/dev/null || ! ip link | grep -q tun; then
|
||||||
echo "$ICO_VPN_OFF "
|
echo "$ICO_VPN_OFF "
|
||||||
else
|
else
|
||||||
echo "$ICO_VPN_ON "
|
echo "$ICO_VPN_ON "
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if which rfkill >/dev/null && [[ -f /dev/rfkill ]]; then
|
||||||
if rfkill list wifi | grep "yes" >/dev/null; then
|
if rfkill list wifi | grep "yes" >/dev/null; then
|
||||||
rfkill unblock wifi
|
rfkill unblock wifi
|
||||||
else
|
else
|
||||||
rfkill block wifi
|
rfkill block wifi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ export EDITOR=nvim
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
|
|
||||||
# motd
|
# motd
|
||||||
export MOTD_SERVICES="$MOTD_SERVICES docker.socket libvirtd"
|
export MOTD_SERVICES="$MOTD_SERVICES docker.socket"
|
||||||
|
|
||||||
# firefox
|
# firefox
|
||||||
export MOZ_USE_XINPUT2=1
|
export MOZ_USE_XINPUT2=1
|
||||||
|
|
Loading…
Reference in New Issue