mirror of
				https://github.com/labwc/labwc.git
				synced 2025-10-29 05:40:24 -04:00 
			
		
		
		
	 b50d0ea4c8
			
		
	
	
		b50d0ea4c8
		
	
	
	
	
		
			
			With swayidle timeout/resume, use wlopm --off/--on with * instead of specifying output names. When * is given as parameter to an operation wlopm will do the operation for all discovered outputs. https://git.sr.ht/~leon_plickat/wlopm/tree/master/item/wlopm.1#L68
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| # Example autostart file
 | |
| 
 | |
| # Set background color.
 | |
| swaybg -c '#113344' >/dev/null 2>&1 &
 | |
| 
 | |
| # Configure output directives such as mode, position, scale and transform.
 | |
| # Use wlr-randr to get your output names
 | |
| # Example ~/.config/kanshi/config below:
 | |
| #   profile {
 | |
| #     output HDMI-A-1 position 1366,0
 | |
| #     output eDP-1 position 0,0
 | |
| #   }
 | |
| kanshi >/dev/null 2>&1 &
 | |
| 
 | |
| # Launch a panel such as yambar or waybar.
 | |
| waybar >/dev/null 2>&1 &
 | |
| 
 | |
| # Enable notifications. Typically GNOME/KDE application notifications go
 | |
| # through the org.freedesktop.Notifications D-Bus API and require a client such
 | |
| # as mako to function correctly. Thunderbird is an example of this.
 | |
| mako >/dev/null 2>&1 &
 | |
| 
 | |
| # Lock screen after 5 minutes; turn off display after another 5 minutes.
 | |
| #
 | |
| # Note that in the context of idle system power management, it is *NOT* a good
 | |
| # idea to turn off displays by 'disabling outputs' for example by
 | |
| # `wlr-randr --output <whatever> --off` because this re-arranges views
 | |
| # (since a837fef). Instead use a wlr-output-power-management client such as
 | |
| # https://git.sr.ht/~leon_plickat/wlopm
 | |
| swayidle -w \
 | |
| 	timeout 300 'swaylock -f -c 000000' \
 | |
| 	timeout 600 'wlopm --off \*' \
 | |
| 	resume 'wlopm --on \*' \
 | |
| 	before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 &
 |