bugfix and desktop blacklist
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
1e11e1422c
commit
d27552b480
@ -47,7 +47,7 @@ class BspwmPager < Worker
|
|||||||
next unless @my_config['monitors'].include?(m_name)
|
next unless @my_config['monitors'].include?(m_name)
|
||||||
end
|
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]
|
if m[:focused]
|
||||||
out << "%{B#{@config['colours']['mon_focused']}} #{m_name} %{B-}"
|
out << "%{B#{@config['colours']['mon_focused']}} #{m_name} %{B-}"
|
||||||
else
|
else
|
||||||
@ -56,6 +56,10 @@ class BspwmPager < Worker
|
|||||||
end
|
end
|
||||||
|
|
||||||
m[:desktops].each do |d_name, d|
|
m[:desktops].each do |d_name, d|
|
||||||
|
if @my_config['blacklist'] != nil
|
||||||
|
next if @my_config['blacklist'].include?(d_name)
|
||||||
|
end
|
||||||
|
|
||||||
if d[:focused]
|
if d[:focused]
|
||||||
out << "%{B#{@config['colours']['bg_focused']}} #{d_name} %{B-}"
|
out << "%{B#{@config['colours']['bg_focused']}} #{d_name} %{B-}"
|
||||||
elsif d[:urgent]
|
elsif d[:urgent]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user