diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 7a4af0d..cb42850 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"; + "on-click" = "reboot now"; }; "custom/power" = { "format" = "󰐥"; diff --git a/user/wm/hyprland/hyprprofiles/hyprprofiles.nix b/user/wm/hyprland/hyprprofiles/hyprprofiles.nix index 8fcd3d3..5a36b7f 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 - ~/.config/hyprprofiles/$prevprofile/exit-hook.sh; + exec ~/.config/hyprprofiles/$prevprofile/exit-hook.sh; fi if [ -f ~/.config/hyprprofiles/$newprofile/start-hook.sh ]; then - ~/.config/hyprprofiles/$newprofile/start-hook.sh; + exec ~/.config/hyprprofiles/$newprofile/start-hook.sh; fi fi '')