moltenbar/mod/bspwm_taskbar
2016-09-27 11:13:42 +03:00

17 lines
279 B
Ruby

# 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()