#315: removed vertical arg from {alsa,pulse}bar
This commit is contained in:
parent
83ad59e0e7
commit
0dc6639637
2 changed files with 1 additions and 5 deletions
|
@ -40,7 +40,6 @@ local function factory(args)
|
||||||
local height = args.height or 1
|
local height = args.height or 1
|
||||||
local ticks = args.ticks or false
|
local ticks = args.ticks or false
|
||||||
local ticks_size = args.ticks_size or 7
|
local ticks_size = args.ticks_size or 7
|
||||||
local vertical = args.vertical or false
|
|
||||||
|
|
||||||
alsabar.cmd = args.cmd or "amixer"
|
alsabar.cmd = args.cmd or "amixer"
|
||||||
alsabar.channel = args.channel or "Master"
|
alsabar.channel = args.channel or "Master"
|
||||||
|
@ -70,8 +69,7 @@ local function factory(args)
|
||||||
paddings = 1,
|
paddings = 1,
|
||||||
ticks = ticks,
|
ticks = ticks,
|
||||||
ticks_size = ticks_size,
|
ticks_size = ticks_size,
|
||||||
widget = wibox.widget.progressbar,
|
widget = wibox.widget.progressbar
|
||||||
layout = vertical and wibox.container.rotate
|
|
||||||
}
|
}
|
||||||
|
|
||||||
alsabar.tooltip = awful.tooltip({ objects = { alsabar.bar } })
|
alsabar.tooltip = awful.tooltip({ objects = { alsabar.bar } })
|
||||||
|
|
|
@ -41,7 +41,6 @@ local function factory(args)
|
||||||
local height = args.heigth or 1
|
local height = args.heigth or 1
|
||||||
local ticks = args.ticks or false
|
local ticks = args.ticks or false
|
||||||
local ticks_size = args.ticks_size or 7
|
local ticks_size = args.ticks_size or 7
|
||||||
local vertical = args.vertical or false
|
|
||||||
local scallback = args.scallback
|
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'"
|
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 = ticks,
|
||||||
ticks_size = ticks_size,
|
ticks_size = ticks_size,
|
||||||
widget = wibox.widget.progressbar,
|
widget = wibox.widget.progressbar,
|
||||||
layout = vertical and wibox.container.rotate
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pulsebar.tooltip = awful.tooltip({ objects = { pulsebar.bar } })
|
pulsebar.tooltip = awful.tooltip({ objects = { pulsebar.bar } })
|
||||||
|
|
Loading…
Add table
Reference in a new issue