mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Compare commits
No commits in common. "5855e5a94b0bb09455cd85637afe995de509d591" and "5da423b8b781a2e17183ad97394d1d4d22f21f5e" have entirely different histories.
5855e5a94b
...
5da423b8b7
|
@ -810,7 +810,7 @@ in
|
|||
"custom/reboot" = {
|
||||
"format" = "";
|
||||
"tooltip" = false;
|
||||
"on-click" = "reboot";
|
||||
"on-click" = "reboot now";
|
||||
};
|
||||
"custom/power" = {
|
||||
"format" = "";
|
||||
|
|
|
@ -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
|
||||
'')
|
||||
|
|
Loading…
Reference in a new issue