This commit is contained in:
Alexander Gehrke 2021-08-19 12:35:53 +02:00
parent 8f4b2a6f8a
commit ac8249a394
3 changed files with 12 additions and 1 deletions

View file

@ -57,6 +57,13 @@ if conf.mprisplayer then
playerctl = playerctl .. " -p " .. conf.mprisplayer
end
local displaymap = {
{"n", binder.spawn("rotate n"), "normal" },
{"i", binder.spawn("rotate i"), "invert" },
{"l", binder.spawn("rotate l"), "left" },
{"r", binder.spawn("rotate r"), "right" },
}
local mprismap = {
{"m", binder.spawn(playerctl .. " play-pause"), "Toggle" },
{"n", binder.spawn(playerctl .. " next"), "Next" },
@ -175,6 +182,8 @@ local myglobalkeys = awful.util.table.join(
awful.key({ }, "XF86AudioNext", mpd.ctrl.next),
awful.key({ }, "XF86AudioPrev", mpd.ctrl.prev),
awful.key({ }, "XF86Display", mb.grabf{keymap=displaymap, name="Rotate"}),
awful.key({ modkey }, "e", binder.spawn('rofi -show emoji')),
awful.key( {}, "Num_Lock", lockhl("Num")),
awful.key( {}, "Caps_Lock", lockhl("Caps"))