From: copycat-killer Date: Tue, 14 Feb 2017 17:42:43 +0000 (+0100) Subject: #315: removed vertical arg from {alsa,pulse}bar X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/0dc66396376f4c96ec538415cca961015a045d98?ds=sidebyside;hp=83ad59e0e7df53d257f1d70d0fe623a3e3b5596b #315: removed vertical arg from {alsa,pulse}bar --- 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 } })