mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-08 20:24:29 +02:00
volume: move volume functions into a lib
Also add some notification when changing the volume. Also move sharetags to the `lib/` directory. And modify `loadrc` to be able to load modules.
This commit is contained in:
parent
5d55609657
commit
3415d39992
6 changed files with 79 additions and 11 deletions
|
@ -105,12 +105,12 @@ local volwidget = widget({ type = "textbox" })
|
|||
vicious.register(volwidget, vicious.widgets.volume,
|
||||
'<span font="Terminus 8" color="' .. beautiful.fg_widget_value .. '">$2 $1%</span>',
|
||||
2, "Master")
|
||||
volume = loadrc("volume", "volume")
|
||||
volwidget:buttons(awful.util.table.join(
|
||||
awful.button({ }, 1, function () awful.util.spawn("pavucontrol", false) end),
|
||||
awful.button({ }, 3, function () awful.util.spawn("amixer -q sset Master toggle", false) end),
|
||||
awful.button({ }, 4, function () awful.util.spawn("amixer -q sset Master 5%+", false) end),
|
||||
awful.button({ }, 5, function () awful.util.spawn("amixer -q sset Master 5%-", false) end)
|
||||
))
|
||||
awful.button({ }, 1, volume.mixer),
|
||||
awful.button({ }, 3, volume.toggle),
|
||||
awful.button({ }, 4, volume.increase),
|
||||
awful.button({ }, 5, volume.decrease)))
|
||||
|
||||
-- File systems
|
||||
local fs = { ["/"] = "root",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue