diff --git a/mod/bspwm_taskbar b/mod/bspwm_taskbar index 5af5f77..ac1581b 100644 --- a/mod/bspwm_taskbar +++ b/mod/bspwm_taskbar @@ -2,7 +2,7 @@ class BspwmTaskbar < Worker def mainloop() - IO.popen("xtitle -s -f '%s'") do |pipe| + IO.popen("xtitle -s -f '%s\n'") do |pipe| pipe.each do |line| if line == "\n" self.write "" diff --git a/moltenbar b/moltenbar index 5f8d163..a5e1d6a 100755 --- a/moltenbar +++ b/moltenbar @@ -163,7 +163,11 @@ if config['geometry'] == nil config['width'] = y.to_i - (gap * 2) 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 lemonbar_cmd = [