From cc4d14ff6a6e4e9d57f756adf89665ccfddfde0b Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sat, 24 May 2025 19:52:22 +0200 Subject: [PATCH] feat(waybar): rfkill --- home/gabriel/features/desktop/common/wayland-wm/waybar.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/gabriel/features/desktop/common/wayland-wm/waybar.nix b/home/gabriel/features/desktop/common/wayland-wm/waybar.nix index 44f97666..bb9ea204 100644 --- a/home/gabriel/features/desktop/common/wayland-wm/waybar.nix +++ b/home/gabriel/features/desktop/common/wayland-wm/waybar.nix @@ -91,6 +91,7 @@ in { "custom/unread-mail" "custom/next-event" "network" + "custom/rfkill" "battery" "pulseaudio" "clock" @@ -365,11 +366,12 @@ in { "restart-interval" = 5; }; "custom/rfkill" = { - interval = 1; + interval = 3; exec-if = mkScript { deps = [pkgs.util-linux]; - script = "rfkill | grep '\'"; + script = "rfkill list wifi | grep yes -q"; }; + exec = "echo 󰀝"; }; }; };