mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
feat(i3status-rust): shut up if no VPN
This commit is contained in:
@@ -169,9 +169,9 @@ in {
|
|||||||
interval = 5;
|
interval = 5;
|
||||||
command = pkgs.writers.writeDash "hu-berlin-vpn" ''
|
command = pkgs.writers.writeDash "hu-berlin-vpn" ''
|
||||||
PATH=${lib.makeBinPath [pkgs.systemd]}
|
PATH=${lib.makeBinPath [pkgs.systemd]}
|
||||||
(systemctl is-active --quiet openvpn-hu-berlin.service && echo "🎓👍 (OpenVPN)") \
|
(systemctl is-active --quiet openvpn-hu-berlin.service && echo "OVPN") \
|
||||||
|| (systemctl is-active --quiet hu-vpn.service && echo "🎓👍 (PPP+SSL)") \
|
|| (systemctl is-active --quiet hu-vpn.service && echo "PPP-VPN") \
|
||||||
|| echo "🎓👎"
|
|| :
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user