mirror of
				https://github.com/librephoenix/nixos-config
				synced 2025-11-04 09:54:00 +05:30 
			
		
		
		
	Compare commits
	
		
			2 commits
		
	
	
		
			5da423b8b7
			...
			5855e5a94b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
							 | 
						5855e5a94b | ||
| 
							 | 
						c4a3edc828 | 
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -810,7 +810,7 @@ in
 | 
				
			||||||
        "custom/reboot" = {
 | 
					        "custom/reboot" = {
 | 
				
			||||||
            "format" = "";
 | 
					            "format" = "";
 | 
				
			||||||
            "tooltip" = false;
 | 
					            "tooltip" = false;
 | 
				
			||||||
            "on-click" = "reboot now";
 | 
					            "on-click" = "reboot";
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        "custom/power" = {
 | 
					        "custom/power" = {
 | 
				
			||||||
            "format" = "";
 | 
					            "format" = "";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@ in
 | 
				
			||||||
    (pkgs.writeScriptBin "hyprprofile" ''
 | 
					    (pkgs.writeScriptBin "hyprprofile" ''
 | 
				
			||||||
      #!/bin/sh
 | 
					      #!/bin/sh
 | 
				
			||||||
      prevprofile="$(cat ~/.hyprprofile)"
 | 
					      prevprofile="$(cat ~/.hyprprofile)"
 | 
				
			||||||
      newprofile=$1
 | 
					      newprofile="$1"
 | 
				
			||||||
      if [ $# -eq 1 ]; then
 | 
					      if [ $# -eq 1 ]; then
 | 
				
			||||||
        if [ $newprofile = "Default" ]; then
 | 
					        if [ $newprofile = "Default" ]; then
 | 
				
			||||||
          echo "" > ~/.hyprprofile;
 | 
					          echo "" > ~/.hyprprofile;
 | 
				
			||||||
| 
						 | 
					@ -19,10 +19,10 @@ in
 | 
				
			||||||
          echo $newprofile > ~/.hyprprofile;
 | 
					          echo $newprofile > ~/.hyprprofile;
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
        if [ -f ~/.config/hyprprofiles/$prevprofile/exit-hook.sh ]; then
 | 
					        if [ -f ~/.config/hyprprofiles/$prevprofile/exit-hook.sh ]; then
 | 
				
			||||||
          exec ~/.config/hyprprofiles/$prevprofile/exit-hook.sh;
 | 
					          ~/.config/hyprprofiles/$prevprofile/exit-hook.sh;
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
        if [ -f ~/.config/hyprprofiles/$newprofile/start-hook.sh ]; then
 | 
					        if [ -f ~/.config/hyprprofiles/$newprofile/start-hook.sh ]; then
 | 
				
			||||||
          exec ~/.config/hyprprofiles/$newprofile/start-hook.sh;
 | 
					          ~/.config/hyprprofiles/$newprofile/start-hook.sh;
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
    '')
 | 
					    '')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue