aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/ri/river
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-25 17:49:49 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-25 17:49:49 +0200
commit83331467ea8de2a4fad23c6a581aff6d6410e9f8 (patch)
tree5c04ab4b5cbb5c96e18cc702f14a2243fd970043 /modules/by-name/ri/river
parentmodules/nix-index/command_not_found.sh: Avoid using removed flag (diff)
downloadnixos-config-83331467ea8de2a4fad23c6a581aff6d6410e9f8.zip
modules/river/keymap: Use consistent view focus and move mappings
Diffstat (limited to 'modules/by-name/ri/river')
-rw-r--r--modules/by-name/ri/river/keymap.nix26
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/by-name/ri/river/keymap.nix b/modules/by-name/ri/river/keymap.nix
index c7db0c54..05f7a4ba 100644
--- a/modules/by-name/ri/river/keymap.nix
+++ b/modules/by-name/ri/river/keymap.nix
@@ -30,14 +30,6 @@ in {
soispha.programs.river.init.mappings.keymap = lib.mkIf cfg.enable (lib.fixedPoints.fix
(self: {
"<LEFT_SUPER>" = {
- # Change focus
- "f" = {
- "t" = ["focus-view" "next"];
- "n" = ["focus-view" "previous"];
- "T" = ["focus-output" "next"];
- "N" = ["focus-output" "previous"];
- };
-
# Spawn standard programs
"r" = {
"a" = mkSpawn pkgs.alacritty "" {};
@@ -54,9 +46,6 @@ in {
"c" = ["close"];
" " = ["toggle-float"];
"<ENTER>" = ["zoom"];
- "o" = ["send-to-output" "next"];
- "t" = ["swap" "next"];
- "n" = ["swap" "previous"];
};
# This is a fill in for <Super-L>, as that is otherwise nearly impossible to input.
@@ -75,8 +64,13 @@ in {
"m" = mkSpawn pkgs.mpp "toggle" {};
};
- # Select tags to view.
+ # Select tags for view.
"v" = {
+ "t" = ["swap" "next"];
+ "n" = ["swap" "previous"];
+ "T" = ["send-to-output" "next"];
+ "N" = ["send-to-output" "previous"];
+
"0" = ["set-view-tags" (builtins.toString ((libraries.base.pow 2 32) - 1))];
"p" = ["send-to-previous-tags"];
@@ -104,8 +98,14 @@ in {
};
};
- # Select tags to focus.
+ # Select tags to focus,
+ # and change focus
"f" = {
+ "t" = ["focus-view" "next"];
+ "n" = ["focus-view" "previous"];
+ "T" = ["focus-output" "next"];
+ "N" = ["focus-output" "previous"];
+
"0" = ["set-focused-tags" (builtins.toString ((libraries.base.pow 2 32) - 1))];
"p" = ["focus-previous-tags"];