Mappings
This commit is contained in:
parent
8f4b2a6f8a
commit
ac8249a394
|
@ -41,5 +41,7 @@ conf.cmd = {
|
|||
|
||||
-- Mod-r binding for running programs
|
||||
conf.cmd.run = function() awful.util.spawn("dmenu_run -l 10 -y 350") end
|
||||
local menubar = require("menubar")
|
||||
conf.cmd.drun = menubar.show
|
||||
|
||||
return conf
|
||||
|
|
|
@ -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"))
|
||||
|
|
|
@ -242,7 +242,7 @@ local default_bindings = awful.util.table.join(
|
|||
--{{{ Prompt
|
||||
|
||||
awful.key({ modkey }, "r", conf.cmd.run),
|
||||
awful.key({ modkey, "Shift" }, "r", menubar.show),
|
||||
awful.key({ modkey, "Shift" }, "r", conf.cmd.drun),
|
||||
|
||||
--}}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue