layout is per-monitor
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
71940157c7
commit
1e11e1422c
|
@ -14,8 +14,7 @@ class BspwmPager < Worker
|
|||
out = []
|
||||
monitor = ""
|
||||
state = {
|
||||
monitors: {},
|
||||
layout: ""
|
||||
monitors: {}
|
||||
}
|
||||
|
||||
string.chomp[1..-1].split(":").each do |part|
|
||||
|
@ -39,7 +38,7 @@ class BspwmPager < Worker
|
|||
urgent: d_urgent
|
||||
}
|
||||
elsif part[0] == "L"
|
||||
state[:layout] = n
|
||||
state[:monitors][monitor][:layout] = n
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -70,9 +69,9 @@ class BspwmPager < Worker
|
|||
end
|
||||
end
|
||||
|
||||
if state[:layout] == "T"
|
||||
if m[:layout] == "T"
|
||||
out << " t "
|
||||
elsif state[:layout] == "M"
|
||||
elsif m[:layout] == "M"
|
||||
out << " m "
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user