Skip to content

Commit 0565327

Browse files
committed
Added another VPN monitor to the status bar.
1 parent 83b7b63 commit 0565327

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

i3/i3status_config

+15-5
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,31 @@ general {
1111
interval = 30
1212
}
1313

14-
order += "online_status"
1514
order += "ethernet _first_"
16-
order += "vpn_status"
15+
order += "online_status"
16+
order += "file_status work_vpn"
17+
order += "file_status lab_vpn"
1718
order += "battery all"
1819
order += "tztime local"
1920

21+
online_status {
22+
format = "Internet: {icon}"
23+
}
24+
2025
ethernet _first_ {
2126
# if you use %speed, i3status requires root privileges
2227
format_up = "%ip"
2328
format_down = "down"
2429
}
2530

26-
vpn_status {
27-
check_pid = true
28-
pidfile = "/sys/class/net/tun0/dev_id"
31+
file_status work_vpn {
32+
paths = "/sys/class/net/tun0/dev_id"
33+
format = "Work VPN: \?color=path [\?if=path ●|■]"
34+
}
35+
36+
file_status lab_vpn {
37+
paths = "/sys/class/net/ppp0/carrier"
38+
format = "Home VPN: \?color=path [\?if=path ●|■]"
2939
}
3040

3141
battery all {

0 commit comments

Comments
 (0)