34 lines
494 B
Lua
34 lines
494 B
Lua
|
local volume = req_rel(..., "util")
|
||
|
|
||
|
return gears.table.join(
|
||
|
awful.key( {}, "XF86AudioRaiseVolume",
|
||
|
function ()
|
||
|
volume.volume_up()
|
||
|
end,
|
||
|
{
|
||
|
description = "Volume up",
|
||
|
group = "System"
|
||
|
}
|
||
|
),
|
||
|
|
||
|
awful.key( {}, "XF86AudioLowerVolume",
|
||
|
function ()
|
||
|
volume.volume_down()
|
||
|
end,
|
||
|
{
|
||
|
description = "Volume down",
|
||
|
group = "System"
|
||
|
}
|
||
|
),
|
||
|
|
||
|
awful.key( {}, "XF86AudioMute",
|
||
|
function ()
|
||
|
volume.toggle_mute()
|
||
|
end,
|
||
|
{
|
||
|
description = "Mute",
|
||
|
group = "System"
|
||
|
}
|
||
|
)
|
||
|
)
|