summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorKinware AB <oss@kinware.com>2013-11-12 20:51:23 +0100
committerMichael Stapelberg <michael@stapelberg.de>2013-11-22 15:52:27 +0100
commit717484184f6e8a3bb38f50cc6fbe4fbfb3544cd9 (patch)
tree3bb8bfdab64761ce06dff14494a75bdcf2bd8bbd /man
parent98595f9f280f331d485b74afd9535723f495b071 (diff)
Add support for path_exists directive.
Diffstat (limited to 'man')
-rw-r--r--man/i3status.man20
1 files changed, 18 insertions, 2 deletions
diff --git a/man/i3status.man b/man/i3status.man
index 8c6f616..e18dbc7 100644
--- a/man/i3status.man
+++ b/man/i3status.man
@@ -50,7 +50,8 @@ general {
order += "ipv6"
order += "disk /"
order += "run_watch DHCP"
-order += "run_watch VPN"
+order += "run_watch VPNC"
+order += "path_exists VPN"
order += "wireless wlan0"
order += "ethernet eth0"
order += "battery 0"
@@ -81,10 +82,16 @@ run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
-run_watch VPN {
+run_watch VPNC {
+ # file containing the PID of a vpnc process
pidfile = "/var/run/vpnc/pid"
}
+path_exists VPN {
+ # path exists when a VPN tunnel launched by nmcli/nm-applet is active
+ path = "/proc/sys/net/ipv4/conf/tun0"
+}
+
tztime local {
format = "%Y-%m-%d %H:%M:%S"
}
@@ -193,6 +200,15 @@ a specific application, such as a VPN client or your DHCP client is running.
*Example format*: +%title: %status+
+=== Path-exists
+
+Checks if the given path exists in the filesystem. You can use this to check if
+something is active, like for example a VPN tunnel managed by NetworkManager.
+
+*Example order*: +path_exists VPN+
+
+*Example format*: +%title: %status+
+
=== Wireless
Gets the link quality and ESSID of the given wireless network interface. You