discovered the dunst stack-tag system.
This commit is contained in:
		
							parent
							
								
									d39248186f
								
							
						
					
					
						commit
						fe3b72a0b3
					
				
					 3 changed files with 141 additions and 109 deletions
				
			
		| 
						 | 
				
			
			@ -183,8 +183,8 @@ font pango:DejaVu Sans Mono 8
 | 
			
		|||
		bindsym $mod+shift+b exec --no-startup-id "xset +dpms; notify-send --expire-time=500 'screen blanking on'"
 | 
			
		||||
 | 
			
		||||
	# change brightness
 | 
			
		||||
		bindsym $mod+control+plus exec --no-startup-id "brightnessctl s +10%; notify-send --expire-time=500 Brightness\ $(brightnessctl -m| cut --delimiter=, -f 4)"
 | 
			
		||||
		bindsym $mod+control+minus exec --no-startup-id "brightnessctl s 10%-; notify-send --expire-time=500 Brightness\ $(brightnessctl -m| cut --delimiter=, -f 4)"
 | 
			
		||||
		bindsym $mod+control+plus exec --no-startup-id "brightnessctl s +1%; notify-send -h string:x-dunst-stack-tag:brightness --expire-time=500 Brightness\ $(brightnessctl -m| cut --delimiter=, -f 4)"
 | 
			
		||||
		bindsym $mod+control+minus exec --no-startup-id "brightnessctl s 1%-; notify-send -h string:x-dunst-stack-tag:brightness --expire-time=500 Brightness\ $(brightnessctl -m| cut --delimiter=, -f 4)"
 | 
			
		||||
 | 
			
		||||
	#screenshot everything with mod+s, current window with mod+shift+s, selection with mod+ctrl+s
 | 
			
		||||
		bindsym $mod+s exec --no-startup-id "maim ~/Pictures/$(date +%s).png; notify-send --expire-time=1000 'Whole-desktop screenshot taken'"
 | 
			
		||||
| 
						 | 
				
			
			@ -201,15 +201,15 @@ font pango:DejaVu Sans Mono 8
 | 
			
		|||
 | 
			
		||||
	#mpd controls
 | 
			
		||||
		bindsym $mod+mod1+p exec --no-startup-id "mpc toggle"
 | 
			
		||||
		bindsym $mod+mod1+plus exec --no-startup-id "mpc volume +1; notify-send --expire-time=1000 $(mpc volume)"
 | 
			
		||||
		bindsym $mod+mod1+minus exec --no-startup-id "mpc volume -1; notify-send --expire-time=1000 $(mpc volume)"
 | 
			
		||||
		bindsym $mod+mod1+plus exec --no-startup-id "mpc volume +1; notify-send MPD: \\"$(mpc volume)\\" --expire-time=1000 -h string:x-dunst-stack-tag:mpdVolume"
 | 
			
		||||
		bindsym $mod+mod1+minus exec --no-startup-id "mpc volume -1; notify-send MPD: \\"$(mpc volume)\\" --expire-time=1000 -h string:x-dunst-stack-tag:mpdVolume"
 | 
			
		||||
 | 
			
		||||
	#open volume control
 | 
			
		||||
		bindsym $mod+shift+p exec pavucontrol
 | 
			
		||||
 | 
			
		||||
	#volume control
 | 
			
		||||
		bindsym $mod+plus exec --no-startup-id "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-; notify-send --expire-time=1000 $(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
 | 
			
		||||
		bindsym $mod+minus exec --no-startup-id "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; notify-send --expire-time=1000 $(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
 | 
			
		||||
		bindsym $mod+plus exec --no-startup-id "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; notify-send --expire-time=1000 -h string:x-dunst-stack-tag:volume $(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
 | 
			
		||||
		bindsym $mod+minus exec --no-startup-id "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-; notify-send --expire-time=1000 -h string:x-dunst-stack-tag:volume $(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
 | 
			
		||||
 | 
			
		||||
	#open firefox
 | 
			
		||||
		bindsym $mod+w exec firefox
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue