From 0dc66396376f4c96ec538415cca961015a045d98 Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Tue, 14 Feb 2017 18:42:43 +0100 Subject: [PATCH 1/1] #315: removed vertical arg from {alsa,pulse}bar --- widget/alsabar.lua | 4 +--- widget/pulsebar.lua | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/widget/alsabar.lua b/widget/alsabar.lua index ff14ed6..7aa8835 100644 --- a/widget/alsabar.lua +++ b/widget/alsabar.lua @@ -40,7 +40,6 @@ local function factory(args) local height = args.height or 1 local ticks = args.ticks or false local ticks_size = args.ticks_size or 7 - local vertical = args.vertical or false alsabar.cmd = args.cmd or "amixer" alsabar.channel = args.channel or "Master" @@ -70,8 +69,7 @@ local function factory(args) paddings = 1, ticks = ticks, ticks_size = ticks_size, - widget = wibox.widget.progressbar, - layout = vertical and wibox.container.rotate + widget = wibox.widget.progressbar } alsabar.tooltip = awful.tooltip({ objects = { alsabar.bar } }) diff --git a/widget/pulsebar.lua b/widget/pulsebar.lua index caaffdc..e96658b 100644 --- a/widget/pulsebar.lua +++ b/widget/pulsebar.lua @@ -41,7 +41,6 @@ local function factory(args) local height = args.heigth or 1 local ticks = args.ticks or false local ticks_size = args.ticks_size or 7 - local vertical = args.vertical or false local scallback = args.scallback pulsebar.cmd = args.cmd or "pacmd list-sinks | sed -n -e '0,/*/d' -e '/base volume/d' -e '/volume:/p' -e '/muted:/p' -e '/device\\.string/p'" @@ -65,7 +64,6 @@ local function factory(args) ticks = ticks, ticks_size = ticks_size, widget = wibox.widget.progressbar, - layout = vertical and wibox.container.rotate } pulsebar.tooltip = awful.tooltip({ objects = { pulsebar.bar } }) -- 2.39.5