1
0
Fork 0

Add config from linux conf

This commit is contained in:
Florian RICHER (MrDev023) 2022-04-13 21:54:22 +02:00
parent 174d913f73
commit 6ba1596291
124 changed files with 3913 additions and 2 deletions

View file

@ -0,0 +1,10 @@
local function bind(globalkeys, clientkeys, clientbuttons)
-- Media Control
globalkeys, clientkeys, clientbuttons = require('keymapping.mediacontrol').bind(globalkeys, clientkeys, clientbuttons)
return globalkeys, clientkeys, clientbuttons
end
return {
bind = bind
}

View file

@ -0,0 +1,19 @@
local awful = require("awful")
local gears = require("gears")
local function bind(globalkeys, clientkeys, clientbuttons)
globalkeys = gears.table.join(globalkeys,
awful.key({ }, "XF86AudioPlay", function () awful.util.spawn_with_shell("playerctl play-pause") end),
awful.key({ }, "XF86AudioNext", function () awful.util.spawn_with_shell("playerctl next") end),
awful.key({ }, "XF86AudioPrev", function () awful.util.spawn_with_shell("playerctl previous") end),
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn_with_shell("amixer -c 0 set Master 1dB+") end),
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn_with_shell("amixer -c 0 set Master 1dB-") end),
awful.key({ }, "XF86AudioMute", function () awful.util.spawn_with_shell("amixer -c 0 set Master toggle") end)
)
return globalkeys, clientkeys, clientbuttons
end
return {
bind = bind
}