home: wm: i3: use keycode for shutdown mapping
The motivation for using keycodes for all those mappings is to allow switch to an actual french keyboard layout it still be able to move through workspaces etc...
This commit is contained in:
parent
22642908dd
commit
7c17b675f6
|
@ -243,7 +243,6 @@ in
|
||||||
# Sub-modes
|
# Sub-modes
|
||||||
"${modifier}+r" = "mode resize";
|
"${modifier}+r" = "mode resize";
|
||||||
"${modifier}+Shift+space" = "mode floating";
|
"${modifier}+Shift+space" = "mode floating";
|
||||||
"${modifier}+0" = ''mode "${shutdownMode}"'';
|
|
||||||
}
|
}
|
||||||
(lib.optionalAttrs config.my.home.wm.screen-lock.enable {
|
(lib.optionalAttrs config.my.home.wm.screen-lock.enable {
|
||||||
"${modifier}+x" =
|
"${modifier}+x" =
|
||||||
|
@ -292,6 +291,9 @@ in
|
||||||
builtins.foldl' (lhs: rhs: lhs // rhs) { } [
|
builtins.foldl' (lhs: rhs: lhs // rhs) { } [
|
||||||
(createWorkspaceBindings modifier "workspace number")
|
(createWorkspaceBindings modifier "workspace number")
|
||||||
(createWorkspaceBindings "${modifier}+Shift" "move container to workspace number")
|
(createWorkspaceBindings "${modifier}+Shift" "move container to workspace number")
|
||||||
|
{
|
||||||
|
"${modifier}+${toString (toKeycode 0)}" = ''mode "${shutdownMode}"'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
modes =
|
modes =
|
||||||
|
|
Loading…
Reference in a new issue