making hyprland work with dpms and turning screens off
This is super necessary because actually turning the screens fully off seems to disconnect it and leaves swaylock broken sometimes. Other times I kill swayidle and thus swaylock isn't working and leaves the computer open to be tampered with.
This commit is contained in:
		
							parent
							
								
									98a3effcfe
								
							
						
					
					
						commit
						25f12159c4
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -118,6 +118,8 @@ in
 | 
			
		|||
    # misc:disable_autoreload = true
 | 
			
		||||
    misc {
 | 
			
		||||
        focus_on_activate = true
 | 
			
		||||
        mouse_move_enables_dpms = true
 | 
			
		||||
        key_press_enables_dpms = true
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    # example window rules
 | 
			
		||||
| 
						 | 
				
			
			@ -241,7 +243,7 @@ in
 | 
			
		|||
    exec-once = dbus-update-activation-environment --systemd --all
 | 
			
		||||
    exec-once = jellyfin-mpv-shim
 | 
			
		||||
    exec-once = hyprctl setcursor phinger-cursors-light 24
 | 
			
		||||
    exec-once = swayidle -w timeout 300 'swaylock -S --effect-blur 20x3 --fade-in 1 --effect-vignette 0.5:1 --grace 60' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -S --effect-blur 20x3 --effect-vignette 0.5:1' 
 | 
			
		||||
    exec-once = swayidle -w timeout 300 'swaylock -S --effect-blur 20x3 --fade-in 1 --effect-vignette 0.5:1 --grace 60' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep 'swaylock -S --effect-blur 20x3 --effect-vignette 0.5:1' 
 | 
			
		||||
    exec-once = eww open ${if laptop then "bar0" else "bar1"}
 | 
			
		||||
    exec-once = sleep 3 && swww img /home/chris/pics/wallpapers/nixorange.webp -t grow --transition-bezier .14,0,.14,.99
 | 
			
		||||
  '';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
Subproject commit 127dcdd2277e0c73493f416fedc537391ab2444b
 | 
			
		||||
Subproject commit cf36df26fcfed1b4e5a4f2e738dee6a6fa4c78f2
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue