From c4a3edc828b771aee012f71cf07f2ae4b3db2dfd Mon Sep 17 00:00:00 2001 From: Emmet Date: Wed, 31 Jul 2024 18:43:50 -0500 Subject: [PATCH 1/2] fixed hyprprofiles exit hooks not being called --- user/wm/hyprland/hyprprofiles/hyprprofiles.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/user/wm/hyprland/hyprprofiles/hyprprofiles.nix b/user/wm/hyprland/hyprprofiles/hyprprofiles.nix index 5a36b7f..8fcd3d3 100644 --- a/user/wm/hyprland/hyprprofiles/hyprprofiles.nix +++ b/user/wm/hyprland/hyprprofiles/hyprprofiles.nix @@ -11,7 +11,7 @@ in (pkgs.writeScriptBin "hyprprofile" '' #!/bin/sh prevprofile="$(cat ~/.hyprprofile)" - newprofile=$1 + newprofile="$1" if [ $# -eq 1 ]; then if [ $newprofile = "Default" ]; then echo "" > ~/.hyprprofile; @@ -19,10 +19,10 @@ in echo $newprofile > ~/.hyprprofile; fi if [ -f ~/.config/hyprprofiles/$prevprofile/exit-hook.sh ]; then - exec ~/.config/hyprprofiles/$prevprofile/exit-hook.sh; + ~/.config/hyprprofiles/$prevprofile/exit-hook.sh; fi if [ -f ~/.config/hyprprofiles/$newprofile/start-hook.sh ]; then - exec ~/.config/hyprprofiles/$newprofile/start-hook.sh; + ~/.config/hyprprofiles/$newprofile/start-hook.sh; fi fi '') From 5855e5a94b0bb09455cd85637afe995de509d591 Mon Sep 17 00:00:00 2001 From: Emmet Date: Wed, 31 Jul 2024 18:44:05 -0500 Subject: [PATCH 2/2] Fixes reboot from waybar menu --- user/wm/hyprland/hyprland.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index cb42850..7a4af0d 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -810,7 +810,7 @@ in "custom/reboot" = { "format" = "󰜉"; "tooltip" = false; - "on-click" = "reboot now"; + "on-click" = "reboot"; }; "custom/power" = { "format" = "󰐥";