add the option of showing specific monitors
This commit is contained in:
		| @@ -6,7 +6,11 @@ class BspwmPager < Worker | ||||
| 			pipe = IO.popen("bspc subscribe") | ||||
| 	 | ||||
| 			pipe.each do |line| | ||||
| 				@pipe_in.puts "bspwm_pager" + "\0" + parse_data(line) | ||||
| 				monitor ||= line.split(":")[0] | ||||
|  | ||||
| 				if @config['mod']['bspwm_pager'].has_key?("monitors") == false || @config['mod']['bspwm_pager']['monitors'].include?(monitor) | ||||
| 					self.write parse_data(line) | ||||
| 				end | ||||
| 			end | ||||
| 		end | ||||
| 	end | ||||
|   | ||||
| @@ -25,6 +25,8 @@ mod: | ||||
|   bspwm_pager: | ||||
|     colour_focused: '#f9f9f9' | ||||
|     show_empty_desktops: false | ||||
| #   monitors: | ||||
| #     - "WMHDMI1" | ||||
|     blacklist: | ||||
|       -h | ||||
|   bspwm_taskbar: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user