Fixed no screen on wake
This commit is contained in:
		
							parent
							
								
									e8b3bb5d79
								
							
						
					
					
						commit
						c4ab743d5d
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -1,17 +1,19 @@ | |||
| #!/usr/bin/env bash | ||||
| # Configuratoin of swayidle | ||||
| # Configuration of swayidle | ||||
| # Just run the script | ||||
| 
 | ||||
| # Kill previous instances to avoid clashing | ||||
| pkill swayidle | ||||
| 
 | ||||
| swayidle -w \ | ||||
|     timeout 300 \ | ||||
|         'brightnessctl -s set 15%' \ | ||||
|         'brightnessctl -s -set 15%' \ | ||||
|         resume 'brightnessctl -r' \ | ||||
|     timeout 600 \ | ||||
|         'swaymsg "output * dpms off"' \ | ||||
|         resume 'swaymsg "output * dpms on"' \ | ||||
|     timeout 1200 \ | ||||
|         'systemctl suspend' \ | ||||
|     before-sleep 'swaylock -f --screenshots --clock --indicator --effect-blur 5x5' | ||||
|     before-sleep 'swaylock -f --screenshots --clock --indicator --effect-blur 5x5; swaymsg "output * dpms on"' | ||||
|     # Screen needs to be turned back on or you will get a black screen after waking up again.  | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue