Compare commits
2 Commits
955684b8e1
...
04df8c2e87
Author | SHA1 | Date | |
---|---|---|---|
04df8c2e87 | |||
5f14eb9286 |
@ -18,6 +18,9 @@ local hotkeys_popup = require("awful.hotkeys_popup")
|
|||||||
-- when client with a matching name is opened:
|
-- when client with a matching name is opened:
|
||||||
require("awful.hotkeys_popup.keys")
|
require("awful.hotkeys_popup.keys")
|
||||||
|
|
||||||
|
-- volume import
|
||||||
|
local volume_widget = require("awesome-wm-widgets.volume-widget.volume")
|
||||||
|
|
||||||
-- {{{ Error handling
|
-- {{{ Error handling
|
||||||
-- Check if awesome encountered an error during startup and fell back to
|
-- Check if awesome encountered an error during startup and fell back to
|
||||||
-- another config (This code will only ever execute for the fallback config)
|
-- another config (This code will only ever execute for the fallback config)
|
||||||
@ -213,6 +216,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||||||
mykeyboardlayout,
|
mykeyboardlayout,
|
||||||
wibox.widget.systray(),
|
wibox.widget.systray(),
|
||||||
mytextclock,
|
mytextclock,
|
||||||
|
volume_widget({display_notification = true}),
|
||||||
s.mylayoutbox,
|
s.mylayoutbox,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -417,7 +421,26 @@ for i = 1, 9 do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
{description = "toggle focused client on tag #" .. i, group = "tag"})
|
{description = "toggle focused client on tag #" .. i, group = "tag"}),
|
||||||
|
awful.key({}, "XF86AudioLowerVolume", function ()
|
||||||
|
awful.util.spawn("amixer -q -D pulse sset Master 5%-", false)
|
||||||
|
end),
|
||||||
|
awful.key({}, "XF86AudioRaiseVolume", function ()
|
||||||
|
awful.util.spawn("amixer -q -D pulse sset Master 5%+", false)
|
||||||
|
end),
|
||||||
|
awful.key({}, "XF86AudioMute", function ()
|
||||||
|
awful.util.spawn("amixer -D pulse set Master 1+ toggle", false)
|
||||||
|
end),
|
||||||
|
-- Media Keys
|
||||||
|
awful.key({}, "XF86AudioPlay", function()
|
||||||
|
awful.util.spawn("playerctl play-pause", false)
|
||||||
|
end),
|
||||||
|
awful.key({}, "XF86AudioNext", function()
|
||||||
|
awful.util.spawn("playerctl next", false)
|
||||||
|
end),
|
||||||
|
awful.key({}, "XF86AudioPrev", function()
|
||||||
|
awful.util.spawn("playerctl previous", false)
|
||||||
|
end)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user