REFACTORING

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2016-10-23 02:07:59 +03:00
parent 8332f8a49f
commit 4d2b7b1f9c
3 changed files with 6 additions and 8 deletions

View File

@@ -2,9 +2,9 @@
class BspwmPager < Worker
def mainloop()
while true do
pipe = IO.popen("bspc subscribe")
IO.popen("bspc subscribe") do
|pipe|
pipe.each do |line|
monitor = line.split(":")[0]