20 lines
281 B
Ruby
20 lines
281 B
Ruby
# vim: ft=ruby
|
|
|
|
class BspwmTaskbar < Worker
|
|
def mainloop()
|
|
IO.popen("xtitle -s -f '%s\n'") do |pipe|
|
|
pipe.each do |line|
|
|
line.chomp!
|
|
|
|
if line == ""
|
|
line = "desktop"
|
|
end
|
|
|
|
self.write line
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
Modules.add("bspwm_taskbar", "BspwmTaskbar")
|