aboutsummaryrefslogtreecommitdiff
path: root/misc/.config/i3status/config
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2024-05-19 18:43:34 +1000
committerYuchen Pei <id@ypei.org>2024-05-19 18:43:34 +1000
commita1e0f8e3159fbe91b3caf9e762bdc94906f00181 (patch)
treeae3240e2b55c7270802f5af7f89eb9d335afd65c /misc/.config/i3status/config
parent33fdc0bf722c67c31f7c6467bd0dcda64a40b405 (diff)
[i3status] Check vpn
Have to use read_file because path_exists does not work with path expansion.
Diffstat (limited to 'misc/.config/i3status/config')
-rw-r--r--misc/.config/i3status/config8
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/.config/i3status/config b/misc/.config/i3status/config
index a276e19..4b7725a 100644
--- a/misc/.config/i3status/config
+++ b/misc/.config/i3status/config
@@ -13,6 +13,7 @@ general {
order += "read_file emms"
order += "wireless _first_"
+order += "read_file VPN"
order += "battery all"
order += "disk /"
order += "disk /home"
@@ -38,6 +39,13 @@ ethernet _first_ {
format_down = "E: down"
}
+# in collaboration with check-ovpn.sh
+read_file VPN {
+ format = "VPN: %content"
+ format_bad = "VPN: NO"
+ path = "~/.local/ovpn-up"
+}
+
battery all {
format = "%status %percentage %remaining"
}