# vim: ft=ruby class ModBspwmTaskbar < ModBasic @@mod_name = 'bspwm_taskbar' def data_loop() while true do IO.popen("xtitle -s -f '%s'").each do |line| $panel_data[@@mod_name.to_sym] = line.chomp $queue << 1 end end end end ModBspwmTaskbar.new.mainloop()