Some other shit

This commit is contained in:
2016-09-27 13:03:14 +03:00
parent b97d52cce5
commit 33b6dca429
4 changed files with 65 additions and 8 deletions

View File

@@ -5,7 +5,10 @@ class ModBspwmPager < ModBasic
def data_loop()
while true do
IO.popen("bspc subscribe").each do |line|
pipe = IO.popen("bspc subscribe")
$children << pipe.pid
pipe.each do |line|
$panel_data[@@mod_name.to_sym] = parse_data(line.chomp)
$queue << 1
end