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
|
||||
|
Reference in New Issue
Block a user