pinwheel: Add warning in waybar when work-vpn is on

This commit is contained in:
Alexander Heldt
2023-10-01 22:41:11 +02:00
parent 776288f61e
commit 65de54d4bf
2 changed files with 25 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ let
pkgs.writeShellApplication {
name = "work-vpn";
text = ''
touch /tmp/work-vpn-on; \
sudo \
${pkgs.openvpn}/bin/openvpn \
--script-security 2 \
@@ -17,7 +18,8 @@ let
--down ${pkgs.update-systemd-resolved}/libexec/openvpn/update-systemd-resolved \
--down-pre \
--config ${ovpnconfig} \
--auth-user-pass ${userpass}
--auth-user-pass ${userpass}; \
rm /tmp/work-vpn-on
'';
};
in