river: added basic wm binds

This commit is contained in:
Aly Raffauf 2024-09-15 10:13:20 -04:00
parent 6301b11610
commit 60e4e4f16e

View file

@ -58,7 +58,8 @@ in {
focus-follows-cursor = "normal";
map = {
normal = {
normal =
{
"${modifier} B" = "spawn ${lib.getExe cfg.defaultApps.webBrowser}";
"${modifier} C" = "close";
"${modifier} E" = "spawn ${lib.getExe cfg.defaultApps.editor}";
@ -68,7 +69,18 @@ in {
"${modifier} T" = "spawn ${lib.getExe cfg.defaultApps.terminal}";
"${modifier}+Control L" = "spawn ${lib.getExe pkgs.swaylock}";
"${modifier}+Shift V" = "toggle-float";
};
"${modifier}+Shift W" = "toggle-fullscreen";
"${modifier} Tab" = "spawn '${lib.getExe config.programs.rofi.package} -show window'";
"Control F12" = "spawn ${helpers.screenshot}";
"None Print" = "spawn ${helpers.screenshot}";
}
// lib.attrsets.concatMapAttrs
(key: direction: {
"${modifier} ${key}" = "focus-view ${direction}";
"${modifier}+Shift ${key}" = "move ${direction}";
"${modifier}+Control+Shift ${key}" = "send-to-output ${direction}";
})
cfg.desktop.windowManagerBinds;
};
map-pointer.normal = {
@ -82,6 +94,7 @@ in {
spawn = [
"rivertile"
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
];
};
}