2022-07-16 15:44:14 -07:00
|
|
|
local volume = req_rel(..., "util")
|
|
|
|
|
2021-08-01 07:24:26 -07:00
|
|
|
return gears.table.join(
|
|
|
|
awful.key( {}, "XF86AudioRaiseVolume",
|
|
|
|
function ()
|
2022-07-16 15:44:14 -07:00
|
|
|
volume.volume_up()
|
2022-11-05 08:12:13 -07:00
|
|
|
awesome.emit_signal("module::volume_popup:show")
|
2021-08-01 07:24:26 -07:00
|
|
|
end,
|
|
|
|
{
|
|
|
|
description = "Volume up",
|
|
|
|
group = "System"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
|
|
|
awful.key( {}, "XF86AudioLowerVolume",
|
|
|
|
function ()
|
2022-07-16 15:44:14 -07:00
|
|
|
volume.volume_down()
|
2022-11-05 08:12:13 -07:00
|
|
|
awesome.emit_signal("module::volume_popup:show")
|
2021-08-01 07:24:26 -07:00
|
|
|
end,
|
|
|
|
{
|
|
|
|
description = "Volume down",
|
|
|
|
group = "System"
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
|
|
|
awful.key( {}, "XF86AudioMute",
|
|
|
|
function ()
|
2022-07-16 15:44:14 -07:00
|
|
|
volume.toggle_mute()
|
2022-11-05 08:12:13 -07:00
|
|
|
awesome.emit_signal("module::volume_popup:show")
|
2021-08-01 07:24:26 -07:00
|
|
|
end,
|
|
|
|
{
|
|
|
|
description = "Mute",
|
|
|
|
group = "System"
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|