custom layout and different niri binds
This commit is contained in:
parent
253d0eb7cc
commit
244fba19a1
5 changed files with 130 additions and 40 deletions
|
@ -1,8 +1,10 @@
|
|||
{ config, ... }: {
|
||||
{ config, ... }: let
|
||||
inherit (config.keys) up down left right;
|
||||
in {
|
||||
input = {
|
||||
keyboard = {
|
||||
xkb = {
|
||||
layout = "us";
|
||||
layout = "us,custom";
|
||||
options = "compose:ralt";
|
||||
};
|
||||
};
|
||||
|
@ -83,9 +85,10 @@
|
|||
];
|
||||
|
||||
binds = {
|
||||
"Mod+T".action.spawn = "alacritty";
|
||||
# Shortcuts
|
||||
"Mod+A".action.spawn = "alacritty";
|
||||
"Mod+B".action.spawn = "firefox";
|
||||
"Mod+S".action.spawn = ["fuzzel" "-I" "-T" "alacritty" "-p" ""];
|
||||
"Mod+U".action.spawn = ["fuzzel" "-I" "-T" "alacritty" "-p" ""];
|
||||
|
||||
"XF86AudioRaiseVolume".action.spawn = ["wpctl" "set-volume" "-l" "1" "@DEFAULT_AUDIO_SINK@" "5%+"];
|
||||
"XF86AudioLowerVolume".action.spawn = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-"];
|
||||
|
@ -95,60 +98,76 @@
|
|||
"XF86MonBrightnessUp".action.spawn = ["brightnessctl" "s" "5%+"];
|
||||
|
||||
"Mod+Backspace".action.close-window = [];
|
||||
"Mod+K".action.center-column = [];
|
||||
|
||||
"Mod+Left".action.focus-column-left = [];
|
||||
"Mod+Right".action.focus-column-right = [];
|
||||
# Move focus
|
||||
"Mod+Up".action.focus-window-up = [];
|
||||
"Mod+Down".action.focus-window-down = [];
|
||||
"Mod+Comma".action.focus-column-left = [];
|
||||
"Mod+Period".action.focus-column-right = [];
|
||||
"Mod+E".action.focus-window-up = [];
|
||||
"Mod+O".action.focus-window-down = [];
|
||||
"Mod+Left".action.focus-column-left = [];
|
||||
"Mod+Right".action.focus-column-right = [];
|
||||
|
||||
"Mod+Shift+Left".action.move-column-left = [];
|
||||
"Mod+Shift+Right".action.move-column-right = [];
|
||||
"Mod+${up}".action.focus-window-up = [];
|
||||
"Mod+${down}".action.focus-window-down = [];
|
||||
"Mod+${left}".action.focus-column-left = [];
|
||||
"Mod+${right}".action.focus-column-right = [];
|
||||
|
||||
# Move column/window
|
||||
"Mod+Shift+Up".action.move-window-up = [];
|
||||
"Mod+Shift+Down".action.move-window-down = [];
|
||||
"Mod+Shift+Comma".action.move-column-left = [];
|
||||
"Mod+Shift+Period".action.move-column-right = [];
|
||||
"Mod+Shift+E".action.move-window-up = [];
|
||||
"Mod+Shift+O".action.move-window-down = [];
|
||||
"Mod+Shift+Left".action.move-column-left = [];
|
||||
"Mod+Shift+Right".action.move-column-right = [];
|
||||
|
||||
"Mod+Ctrl+Left".action.focus-monitor-left = [];
|
||||
"Mod+Ctrl+Right".action.focus-monitor-right = [];
|
||||
"Mod+Shift+${up}".action.move-window-up = [];
|
||||
"Mod+Shift+${down}".action.move-window-down = [];
|
||||
"Mod+Shift+${left}".action.move-column-left = [];
|
||||
"Mod+Shift+${right}".action.move-column-right = [];
|
||||
|
||||
# Move monitor focus
|
||||
"Mod+Ctrl+Up".action.focus-monitor-up = [];
|
||||
"Mod+Ctrl+Down".action.focus-monitor-down = [];
|
||||
"Mod+Ctrl+Comma".action.focus-monitor-left = [];
|
||||
"Mod+Ctrl+Period".action.focus-monitor-right = [];
|
||||
"Mod+Ctrl+E".action.focus-monitor-up = [];
|
||||
"Mod+Ctrl+O".action.focus-monitor-down = [];
|
||||
"Mod+Ctrl+Left".action.focus-monitor-left = [];
|
||||
"Mod+Ctrl+Right".action.focus-monitor-right = [];
|
||||
|
||||
"Mod+Shift+Ctrl+Left".action.move-column-to-monitor-left = [];
|
||||
"Mod+Shift+Ctrl+Right".action.move-column-to-monitor-right = [];
|
||||
"Mod+Ctrl+${up}".action.focus-monitor-up = [];
|
||||
"Mod+Ctrl+${down}".action.focus-monitor-down = [];
|
||||
"Mod+Ctrl+${left}".action.focus-monitor-left = [];
|
||||
"Mod+Ctrl+${right}".action.focus-monitor-right = [];
|
||||
|
||||
# Move columns between monitors
|
||||
"Mod+Shift+Ctrl+Up".action.move-column-to-monitor-up = [];
|
||||
"Mod+Shift+Ctrl+Down".action.move-column-to-monitor-down = [];
|
||||
"Mod+Shift+Ctrl+Comma".action.move-column-to-monitor-left = [];
|
||||
"Mod+Shift+Ctrl+Period".action.move-column-to-monitor-right = [];
|
||||
"Mod+Shift+Ctrl+E".action.move-column-to-monitor-up = [];
|
||||
"Mod+Shift+Ctrl+O".action.move-column-to-monitor-down = [];
|
||||
"Mod+Shift+Ctrl+Left".action.move-column-to-monitor-left = [];
|
||||
"Mod+Shift+Ctrl+Right".action.move-column-to-monitor-right = [];
|
||||
|
||||
"Mod+P".action.consume-window-into-column = [];
|
||||
"Mod+Shift+P".action.expel-window-from-column = [];
|
||||
"Mod+Shift+Ctrl+${up}".action.move-column-to-monitor-up = [];
|
||||
"Mod+Shift+Ctrl+${down}".action.move-column-to-monitor-down = [];
|
||||
"Mod+Shift+Ctrl+${left}".action.move-column-to-monitor-left = [];
|
||||
"Mod+Shift+Ctrl+${right}".action.move-column-to-monitor-right = [];
|
||||
|
||||
# Stack windows
|
||||
"Mod+BracketLeft".action.consume-window-into-column = [];
|
||||
"Mod+BracketRight".action.expel-window-from-column = [];
|
||||
|
||||
# Resize windows
|
||||
"Mod+Z".action.switch-preset-column-width = [];
|
||||
"Mod+F".action.maximize-column = [];
|
||||
"Mod+Shift+F".action.fullscreen-window = [];
|
||||
"Mod+K".action.center-column = [];
|
||||
|
||||
"Mod+Plus".action.set-column-width = "+10%";
|
||||
"Mod+Minus".action.set-column-width = "-10%";
|
||||
"Mod+Shift+Plus".action.set-window-height = "+10%";
|
||||
"Mod+Shift+Minus".action.set-window-height = "-10%";
|
||||
|
||||
"Mod+Shift+S".action.screenshot = [];
|
||||
"Mod+Shift+Ctrl+S".action.screenshot-window = [];
|
||||
# Change Layout
|
||||
"Mod+Comma".action.switch-layout = "prev";
|
||||
"Mod+Period".action.switch-layout = "next";
|
||||
|
||||
# Screenshot
|
||||
"Mod+Shift+P".action.screenshot = [];
|
||||
"Mod+Shift+Ctrl+P".action.screenshot-window = [];
|
||||
"Print".action.screenshot-screen = [];
|
||||
|
||||
# Exit
|
||||
"Mod+Shift+L".action.spawn = "swaylock";
|
||||
"Mod+Shift+Q".action.quit = [];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue