new modules

This commit is contained in:
2016-09-27 11:13:42 +03:00
parent 1304907829
commit b97d52cce5
5 changed files with 99 additions and 2 deletions

16
mod/bspwm_taskbar Normal file
View File

@@ -0,0 +1,16 @@
# 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()