-
Notifications
You must be signed in to change notification settings - Fork 25
Keybindings
Press <Super> + <S> ;)
But in case you want to change your keybindings its pretty simple.
Go to /mappings/
and open either the
global_keys.lua or
client_keys.lua
The global_keys are for every keybinding that does not rely on a client or widget and can be done at any moment e.g. open rofi, change volume etc
The client_keys are for clients specifically, for example to move them around, close them etc
You are going to find something like this:
awful.key(
{ modkey },
"#44",
function()
awful.client.focus.byidx(1)
end,
{ description = "Focus next client by index", group = "Client" }
)
The modkey is defined in the user_variables.lua, "#44" is the keycode, so it works on every keyboard layout, but you can just as well write "a", "5" or "return".
After this comes a callback function where the magic happens, do whatever you want this keypress to do.
client_keys.lua gets a "c" in their callback function, this is the client that was focused while pressing the key.