From 127c4df7fa8314f0d83e8cb632d74efa9a807226 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 19 Jul 2023 09:17:24 +0100 Subject: [PATCH] Use kanshi to turn wifi on or off based on docked status --- hosts/Ronin/home.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/Ronin/home.nix b/hosts/Ronin/home.nix index 687b9972..3dc20e55 100644 --- a/hosts/Ronin/home.nix +++ b/hosts/Ronin/home.nix @@ -43,7 +43,10 @@ in { status = "enable"; } ]; - exec = [restart_hyprpaper]; + exec = [ + restart_hyprpaper + "rfkill unblock wlan" + ]; }; docked = { outputs = [ @@ -60,7 +63,10 @@ in { status = "enable"; } ]; - exec = [restart_hyprpaper]; + exec = [ + restart_hyprpaper + "rfkill block wlan" + ]; }; }; };