From c9a91dc767288c4f311ad1e8ed5116f4bbce38a3 Mon Sep 17 00:00:00 2001 From: NeodarZ Date: Wed, 31 Jan 2018 20:34:15 +0100 Subject: Add vpn conf --- i3pystatus/.config/i3pystatus/conf.py | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'i3pystatus') diff --git a/i3pystatus/.config/i3pystatus/conf.py b/i3pystatus/.config/i3pystatus/conf.py index adcb5ea..7ba2249 100644 --- a/i3pystatus/.config/i3pystatus/conf.py +++ b/i3pystatus/.config/i3pystatus/conf.py @@ -132,14 +132,40 @@ status.register("text", text="|", hints = {"separator": False, "separator_block_width": 0},) -status.register("net_speed", +status.register("openvpn", + format="{status}", + vpn_name="vpn-pro", + status_up="vpro", + status_down="", + status_command="bash -c 'systemctl show vpn-pro.service | grep ActiveState=active'", + hints = {"markup": "pango", "separator": False, "separator_block_width": 0},) + +status.register("text", + text="|", hints = {"separator": False, "separator_block_width": 0},) +status.register("openvpn", + format="{status}", + vpn_name="vpn-perso", + status_up="vperso", + status_down="", + status_command="bash -c 'systemctl show vpn-perso.service | grep ActiveState=active'", + hints = {"markup": "pango", "separator": False, "separator_block_width": 0},) + status.register("text", text="|", hints = {"separator": False, "separator_block_width": 0},) +#status.register("netspeed", +#status.register("net_speed", +# hints = {"separator": False, "separator_block_width": 0},) + +#status.register("text", +# text="|", +# hints = {"separator": False, "separator_block_width": 0},) + + #status.register("external_ip", # color="#fff", # color_down="#fff", -- cgit v1.2.1