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-11-05 09:54:25 -07:00
|
|
|
volume.volume_up(config.volume.button_step)
|
2022-11-05 11:31:12 -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-11-05 09:54:25 -07:00
|
|
|
volume.volume_down(config.volume.button_step)
|
2022-11-05 11:31:12 -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 11:31:12 -07:00
|
|
|
awesome.emit_signal("module::volume:popup_show")
|
2021-08-01 07:24:26 -07:00
|
|
|
end,
|
|
|
|
{
|
|
|
|
description = "Mute",
|
|
|
|
group = "System"
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|