add the option of showing specific monitors

This commit is contained in:
Jack L. Frost 2016-09-29 17:03:30 +03:00
parent 8d15374740
commit cb8e6f637f
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -25,6 +25,8 @@ mod:
bspwm_pager:
colour_focused: '#f9f9f9'
show_empty_desktops: false
# monitors:
# - "WMHDMI1"
blacklist:
-h
bspwm_taskbar: