the fuck. How did this ever work

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2017-04-21 21:56:38 +03:00
parent eba0c0df0b
commit 212ea98db8
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@
class BspwmTaskbar < Worker class BspwmTaskbar < Worker
def mainloop() def mainloop()
IO.popen("xtitle -s -f '%s'") do |pipe| IO.popen("xtitle -s -f '%s\n'") do |pipe|
pipe.each do |line| pipe.each do |line|
if line == "\n" if line == "\n"
self.write "" self.write ""

View File

@ -163,7 +163,11 @@ if config['geometry'] == nil
config['width'] = y.to_i - (gap * 2) config['width'] = y.to_i - (gap * 2)
end end
config['geometry'] = sprintf("%sx%s+%s+%s", config['width'], config['height'], gap, gap) config['geometry'] = "%{w}x%{h}+%{gap}+%{gap}" % [
w: config['width'],
h: config['height'],
gap: gap
]
end end
lemonbar_cmd = [ lemonbar_cmd = [