Fixed automatic locking, and added pulse triggers to srandrd
This commit is contained in:
		
							parent
							
								
									7e55ab0424
								
							
						
					
					
						commit
						575f2f7b26
					
				@ -3,8 +3,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
case "$SRANDRD_ACTION" in
 | 
					case "$SRANDRD_ACTION" in
 | 
				
			||||||
	"HDMI1 connected")	xrandr --output HDMI1 --auto
 | 
						"HDMI1 connected")	xrandr --output HDMI1 --auto
 | 
				
			||||||
				xrandr --output eDP1 --off;;
 | 
									xrandr --output eDP1 --off
 | 
				
			||||||
 | 
									pacmd set-default-sink 0;;
 | 
				
			||||||
	"HDMI1 disconnected")	xrandr --output HDMI1 --off
 | 
						"HDMI1 disconnected")	xrandr --output HDMI1 --off
 | 
				
			||||||
				xrandr --output eDP1 --auto;;
 | 
									xrandr --output eDP1 --auto
 | 
				
			||||||
 | 
									pacmd set-default-sink 1;;
 | 
				
			||||||
esac
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.xinitrc
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								.xinitrc
									
									
									
									
									
								
							@ -29,7 +29,7 @@ eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
 | 
				
			|||||||
export SSH_AUTH_SOCK
 | 
					export SSH_AUTH_SOCK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Automatically lock after 30 minutes using slock
 | 
					# Automatically lock after 30 minutes using slock
 | 
				
			||||||
xautolock -time 30 -locker i3lock -b -d -c 000000 -e -f
 | 
					xautolock -time 30 -locker 'i3lock -b -d -c 000000 -e -f' &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Thurstybook-specific config:
 | 
					# Thurstybook-specific config:
 | 
				
			||||||
[[ "$HOSTNAME" == "thurstybook" ]] && srandrd ~/.config/srandrd.conf
 | 
					[[ "$HOSTNAME" == "thurstybook" ]] && srandrd ~/.config/srandrd.conf
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user