config update

This commit is contained in:
ackman678
2020-10-19 17:07:35 -07:00
parent ca5ce3b2a6
commit 4724c91d75
4 changed files with 20 additions and 8 deletions

View File

@@ -29,7 +29,9 @@ order += "ipv6"
order += "wireless _first_"
order += "ethernet _first_"
#order += "run_watch DHCP"
order += "path_exists VPN"
order += "path_exists ovpn"
order += "path_exists wgvpn"
order += "path_exists wg0"
order += "battery all"
order += "cpu_temperature 0"
order += "load"
@@ -62,11 +64,19 @@ disk "/" {
format = "%avail"
}
path_exists VPN {
path_exists ovpn {
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
path = "/proc/sys/net/ipv4/conf/tun0"
}
path_exists wgvpn {
# path exists when a WireGuard VPN tunnel is active
path = "/proc/sys/net/ipv4/conf/wgpia0"
}
path_exists wg0 {
# path exists when a WireGuard VPN tunnel is active
path = "/proc/sys/net/ipv4/conf/wg0"
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}

View File

@@ -256,8 +256,9 @@ bar {
mode dock
hidden_state hide
modifier Mod1
#modifier Mod1
modifier ""
colors {
background $base00
separator $base03