bugfix and desktop blacklist

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2017-05-24 16:42:23 +03:00
parent 1e11e1422c
commit d27552b480
1 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class BspwmPager < Worker
next unless @my_config['monitors'].include?(m_name)
end
if state[:monitors].count > 2 or @my_config['show_single_monitor']
if state[:monitors].count > 1 or @my_config['show_single_monitor']
if m[:focused]
out << "%{B#{@config['colours']['mon_focused']}} #{m_name} %{B-}"
else
@ -56,6 +56,10 @@ class BspwmPager < Worker
end
m[:desktops].each do |d_name, d|
if @my_config['blacklist'] != nil
next if @my_config['blacklist'].include?(d_name)
end
if d[:focused]
out << "%{B#{@config['colours']['bg_focused']}} #{d_name} %{B-}"
elsif d[:urgent]