From 2cd6e4168659fd3490584161fb4ae69b41a2a5a9 Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 3 Sep 2025 13:00:26 -0500 Subject: [PATCH] pkexec --- home-manager/programs/hyprland/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/programs/hyprland/default.nix b/home-manager/programs/hyprland/default.nix index 19aa3c1..dd6b93b 100644 --- a/home-manager/programs/hyprland/default.nix +++ b/home-manager/programs/hyprland/default.nix @@ -37,7 +37,7 @@ }; extraConfig = (if config.homeconfig.host == "laptop" then '' - bind = CTRL SHIFT, XF86Launch2, exec, kitty -e bash -c "if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch; else sudo /nix/var/nix/profiles/system/specialisation/docked/bin/switch-to-configuration switch; fi" + bind = CTRL SHIFT, XF86Launch2, exec, bash -c 'if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then pkexec --user root /nix/var/nix/profiles/system/bin/switch-to-configuration switch; else pkexec --user root /nix/var/nix/profiles/system/specialisation/docked/bin/switch-to-configuration switch; fi' '' else if config.homeconfig.host == "homebox" then '' monitor=HDMI-A-2,1920x1080@60,0x0,1 monitor=HEADLESS-2,1920x1080@60,0x0,1