fix(hypekillsession): change process from .Hyprland-wrapp > Hyprland
This commit is contained in:
		
							parent
							
								
									44ff6fd27f
								
							
						
					
					
						commit
						1294cf04e9
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -2,14 +2,15 @@ | |||
| 
 | ||||
| pkgs.writeShellApplication { | ||||
|   name = "hyprkillsession"; | ||||
|   runtimeInputs = with pkgs; [ procps ]; | ||||
|   text = '' | ||||
|     if pgrep -x .Hyprland-wrapp >/dev/null; then | ||||
|     if pgrep -x Hyprland >/dev/null; then | ||||
| 
 | ||||
|     hyprctl dispatch exit 0 | ||||
|     sleep 2 | ||||
| 
 | ||||
|     if pgrep -x .Hyprland-wrapp >/dev/null; then | ||||
|     killall -9 .Hyprland-wrapp | ||||
|     if pgrep -x Hyprland >/dev/null; then | ||||
|     killall -9 Hyprland | ||||
|     fi | ||||
|     fi | ||||
|   ''; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue