fix(niri): bindings adapted for ahrc-pc

This commit is contained in:
Ahurac 2024-10-15 17:24:54 +02:00
parent 3266d41529
commit 75fb1fccba
3 changed files with 20 additions and 8 deletions

View file

@ -48,6 +48,14 @@
"Alt+TouchpadScrollDown".action = spawn "brightnessctl" "set" "10-"; "Alt+TouchpadScrollDown".action = spawn "brightnessctl" "set" "10-";
"Alt+TouchpadScrollUp".action = spawn "brightnessctl" "set" "+10"; "Alt+TouchpadScrollUp".action = spawn "brightnessctl" "set" "+10";
"XF86Display".action = power-off-monitors; "XF86Display".action = power-off-monitors;
"Mod+ampersand".action = focus-workspace 1;
"Mod+eacute".action = focus-workspace 2;
"Mod+quotedbl".action = focus-workspace 3;
"Mod+apostrophe".action = focus-workspace 4;
"Mod+Shift+ampersand".action = move-column-to-workspace 1;
"Mod+Shift+eacute".action = move-column-to-workspace 2;
"Mod+Shift+quotedbl".action = move-column-to-workspace 3;
"Mod+Shift+apostrophe".action = move-column-to-workspace 4;
}; };
}; };
} }

View file

@ -1,3 +1,5 @@
{ config, ... }:
{ {
imports = [ ../common/home.nix ]; imports = [ ../common/home.nix ];
@ -15,5 +17,15 @@
input.keyboard.xkb.layout = "us"; input.keyboard.xkb.layout = "us";
outputs."HDMI-1".scale = 1; outputs."HDMI-1".scale = 1;
layout.border.active.color = "#d966ff"; layout.border.active.color = "#d966ff";
binds = with config.lib.niri.actions; {
"Mod+1".action = focus-workspace 1;
"Mod+2".action = focus-workspace 2;
"Mod+3".action = focus-workspace 3;
"Mod+4".action = focus-workspace 4;
"Mod+Shift+1".action = move-column-to-workspace 1;
"Mod+Shift+2".action = move-column-to-workspace 2;
"Mod+Shift+3".action = move-column-to-workspace 3;
"Mod+Shift+4".action = move-column-to-workspace 4;
};
}; };
} }

View file

@ -356,14 +356,6 @@
"Mod+WheelScrollUp".action = focus-column-left; "Mod+WheelScrollUp".action = focus-column-left;
"Mod+Shift+WheelScrollDown".action = move-column-right; "Mod+Shift+WheelScrollDown".action = move-column-right;
"Mod+Shift+WheelScrollUp".action = move-column-left; "Mod+Shift+WheelScrollUp".action = move-column-left;
"Mod+ampersand".action = focus-workspace 1;
"Mod+eacute".action = focus-workspace 2;
"Mod+quotedbl".action = focus-workspace 3;
"Mod+apostrophe".action = focus-workspace 4;
"Mod+Shift+ampersand".action = move-column-to-workspace 1;
"Mod+Shift+eacute".action = move-column-to-workspace 2;
"Mod+Shift+quotedbl".action = move-column-to-workspace 3;
"Mod+Shift+apostrophe".action = move-column-to-workspace 4;
"Mod+Tab".action = focus-workspace-previous; "Mod+Tab".action = focus-workspace-previous;
"Mod+F".action = maximize-column; "Mod+F".action = maximize-column;
"Mod+W".action = set-column-width "-10%"; "Mod+W".action = set-column-width "-10%";