From 36630da39cb82a0fb75991ffeeefcb15623a47ea Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Tue, 28 Jul 2026 23:06:29 +0530 Subject: feat(usque): using usque for connecting with cloudflare warp - Using usque for an opensource alternative to cloudflare-warp client - Created utility script usque-warp that can automatically connect and disconnect channel with cloudflare warp --- modules/desktop/waybar/bar/main.nix | 1 - modules/desktop/waybar/module/default.nix | 1 - modules/desktop/waybar/module/vpn.nix | 21 --------------------- modules/desktop/waybar/style.nix | 4 ++-- 4 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 modules/desktop/waybar/module/vpn.nix (limited to 'modules/desktop') diff --git a/modules/desktop/waybar/bar/main.nix b/modules/desktop/waybar/bar/main.nix index 4bbbc8b..276abd6 100644 --- a/modules/desktop/waybar/bar/main.nix +++ b/modules/desktop/waybar/bar/main.nix @@ -12,7 +12,6 @@ modules-right = [ "pulseaudio" "battery" - "custom/vpn" "network" "memory" "cpu" diff --git a/modules/desktop/waybar/module/default.nix b/modules/desktop/waybar/module/default.nix index 77d97cb..25cdb14 100644 --- a/modules/desktop/waybar/module/default.nix +++ b/modules/desktop/waybar/module/default.nix @@ -17,7 +17,6 @@ let "network" = ./network.nix; "clock#time" = ./time.nix; "pulseaudio" = ./volume.nix; - "custom/vpn" = ./vpn.nix; "hyprland/window" = ./window.nix; "hyprland/workspaces" = ./workspaces.nix; }; diff --git a/modules/desktop/waybar/module/vpn.nix b/modules/desktop/waybar/module/vpn.nix deleted file mode 100644 index 7eb8879..0000000 --- a/modules/desktop/waybar/module/vpn.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ - config, - lib, - pkgs, - mkIcon, - ... -}: -with config.scheme.withHashtag; -let - iconColor = base0C; - vpnCheckScript = pkgs.writeShellScript "vpn-check" '' - if ${lib.getExe' pkgs.iproute2 "ip"} a | ${lib.getExe pkgs.gnugrep} -q tun0; then - printf '${mkIcon iconColor ""} VPN' - fi - ''; -in -{ - exec = "${vpnCheckScript}"; - interval = 5; - format = "{}"; -} diff --git a/modules/desktop/waybar/style.nix b/modules/desktop/waybar/style.nix index 0f697c0..82aca19 100644 --- a/modules/desktop/waybar/style.nix +++ b/modules/desktop/waybar/style.nix @@ -11,7 +11,7 @@ with config.scheme.withHashtag; padding: 0; } - #workspaces, #window, #pulseaudio, #battery, #custom-vpn, #network, + #workspaces, #window, #pulseaudio, #battery, #network, #clock.time, #memory, #cpu, #clock.date { background: ${base00}; margin: 0 5px; @@ -22,7 +22,7 @@ with config.scheme.withHashtag; margin-right: 0; } - #window, #pulseaudio, #battery, #custom-vpn, #network, + #window, #pulseaudio, #battery, #network, #clock.time, #memory, #cpu, #clock.date { border: 1px solid ${base07}; color: ${base07}; -- cgit v1.2.3