Added mopidy mode keybind for consume
This commit is contained in:
		
							
								
								
									
										6
									
								
								.bin/mpc/mpc-i3-consume
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								.bin/mpc/mpc-i3-consume
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					if [[ "$(mpc consume)" == *"consume: on"* ]]; then
 | 
				
			||||||
 | 
						notify-send -a "Mopidy" -u low -t 1 "Consume On" "Songs will be removed from the playlist after completion"
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
						notify-send -a "Mopidy" -u low -t 1 "Consume Off" "Songs will remain in the playlist after completion"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
@@ -226,9 +226,10 @@ mode "resize" {
 | 
				
			|||||||
bindsym $mod+r mode "resize"
 | 
					bindsym $mod+r mode "resize"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
mode "mopidy" {
 | 
					mode "mopidy" {
 | 
				
			||||||
	# Shuffle and Repeat
 | 
						# Shuffle, Repeat, and Consume
 | 
				
			||||||
	bindsym s exec --no-startup-id "~/.bin/mpc/mpc-i3-shuffle"
 | 
						bindsym s exec --no-startup-id "~/.bin/mpc/mpc-i3-shuffle"
 | 
				
			||||||
	bindsym r exec --no-startup-id "~/.bin/mpc/mpc-i3-repeat"
 | 
						bindsym r exec --no-startup-id "~/.bin/mpc/mpc-i3-repeat"
 | 
				
			||||||
 | 
						bindsym e exec --no-startup-id "~/.bin/mpc/mpc-i3-consume"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# Volume keys
 | 
						# Volume keys
 | 
				
			||||||
	bindsym Up exec --no-startup-id "mpc volume +5"
 | 
						bindsym Up exec --no-startup-id "mpc volume +5"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user