moltenbar/mod/bspwm_taskbar
fbt dcae7a3410 Forgot to add this
Signed-off-by: fbt <fbt@fleshless.org>
2019-05-15 16:40:18 +03:00

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")