mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 03:33:55 -05:00
river: added basic wm binds
This commit is contained in:
parent
6301b11610
commit
60e4e4f16e
|
@ -58,17 +58,29 @@ in {
|
||||||
focus-follows-cursor = "normal";
|
focus-follows-cursor = "normal";
|
||||||
|
|
||||||
map = {
|
map = {
|
||||||
normal = {
|
normal =
|
||||||
"${modifier} B" = "spawn ${lib.getExe cfg.defaultApps.webBrowser}";
|
{
|
||||||
"${modifier} C" = "close";
|
"${modifier} B" = "spawn ${lib.getExe cfg.defaultApps.webBrowser}";
|
||||||
"${modifier} E" = "spawn ${lib.getExe cfg.defaultApps.editor}";
|
"${modifier} C" = "close";
|
||||||
"${modifier} F" = "spawn ${lib.getExe cfg.defaultApps.fileManager}";
|
"${modifier} E" = "spawn ${lib.getExe cfg.defaultApps.editor}";
|
||||||
"${modifier} M" = ''spawn "${lib.getExe config.programs.rofi.package} -show power-menu -modi 'power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot'"'';
|
"${modifier} F" = "spawn ${lib.getExe cfg.defaultApps.fileManager}";
|
||||||
"${modifier} R" = "spawn '${lib.getExe config.programs.rofi.package} -show combi'";
|
"${modifier} M" = ''spawn "${lib.getExe config.programs.rofi.package} -show power-menu -modi 'power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot'"'';
|
||||||
"${modifier} T" = "spawn ${lib.getExe cfg.defaultApps.terminal}";
|
"${modifier} R" = "spawn '${lib.getExe config.programs.rofi.package} -show combi'";
|
||||||
"${modifier}+Control L" = "spawn ${lib.getExe pkgs.swaylock}";
|
"${modifier} T" = "spawn ${lib.getExe cfg.defaultApps.terminal}";
|
||||||
"${modifier}+Shift V" = "toggle-float";
|
"${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 = {
|
map-pointer.normal = {
|
||||||
|
@ -82,6 +94,7 @@ in {
|
||||||
|
|
||||||
spawn = [
|
spawn = [
|
||||||
"rivertile"
|
"rivertile"
|
||||||
|
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue