mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
132 lines
5.2 KiB
Nix
132 lines
5.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.fireproof.desktop.windowManager.enable {
|
|
fireproof.home-manager.programs.niri.settings.binds = {
|
|
"XF86AudioRaiseVolume" = {
|
|
allow-when-locked = true;
|
|
action.spawn = ["dms" "ipc" "audio" "increment" "3"];
|
|
};
|
|
"XF86AudioLowerVolume" = {
|
|
allow-when-locked = true;
|
|
action.spawn = ["dms" "ipc" "audio" "decrement" "3"];
|
|
};
|
|
"XF86AudioMute" = {
|
|
allow-when-locked = true;
|
|
action.spawn = ["dms" "ipc" "audio" "mute"];
|
|
};
|
|
"XF86AudioMicMute" = {
|
|
allow-when-locked = true;
|
|
action.spawn = ["dms" "ipc" "audio" "micmute"];
|
|
};
|
|
"XF86MonBrightnessUp" = {
|
|
allow-when-locked = true;
|
|
action.spawn = ["dms" "ipc" "brightness" "increment" "5" ""];
|
|
};
|
|
"XF86MonBrightnessDown" = {
|
|
allow-when-locked = true;
|
|
action.spawn = ["dms" "ipc" "brightness" "decrement" "5" ""];
|
|
};
|
|
"Mod+N" = {
|
|
action.spawn = ["dms" "ipc" "notifications" "toggle"];
|
|
hotkey-overlay.title = "Toggle Notification Center";
|
|
};
|
|
"Mod+V" = {
|
|
action.spawn = ["dms" "ipc" "clipboard" "toggle"];
|
|
hotkey-overlay.title = "Toggle Clipboard Manager";
|
|
};
|
|
"Mod+Space" = {
|
|
action.spawn = ["dms" "ipc" "spotlight" "toggle"];
|
|
hotkey-overlay.title = "Toggle Application Launcher";
|
|
};
|
|
"Mod+Semicolon" = {
|
|
action.spawn = ["dms" "ipc" "spotlight" "toggleQuery" ":"];
|
|
hotkey-overlay.title = "Toggle Emoji Picker";
|
|
};
|
|
"Mod+P" = {
|
|
action.spawn = ["dms" "ipc" "powermenu" "toggle"];
|
|
hotkey-overlay.title = "Toggle Power Menu";
|
|
};
|
|
|
|
"Mod+Left".action.focus-column-or-monitor-left = {};
|
|
"Mod+Down".action.focus-window-or-monitor-down = {};
|
|
"Mod+Up".action.focus-window-or-monitor-up = {};
|
|
"Mod+Right".action.focus-column-or-monitor-right = {};
|
|
"Mod+H".action.focus-column-or-monitor-left = {};
|
|
"Mod+J".action.focus-window-or-monitor-down = {};
|
|
"Mod+K".action.focus-window-or-monitor-up = {};
|
|
"Mod+L".action.focus-column-or-monitor-right = {};
|
|
|
|
"Mod+Shift+Left".action.move-column-left-or-to-monitor-left = {};
|
|
"Mod+Shift+Down".action.move-window-down = {};
|
|
"Mod+Shift+Up".action.move-window-up = {};
|
|
"Mod+Shift+Right".action.move-column-right-or-to-monitor-right = {};
|
|
"Mod+Shift+H".action.move-column-left-or-to-monitor-left = {};
|
|
"Mod+Shift+J".action.move-window-down = {};
|
|
"Mod+Shift+K".action.move-window-up = {};
|
|
"Mod+Shift+L".action.move-column-right-or-to-monitor-right = {};
|
|
|
|
"Mod+Home".action.focus-column-first = {};
|
|
"Mod+End".action.focus-column-last = {};
|
|
"Mod+Shift+Home".action.move-column-to-first = {};
|
|
"Mod+Shift+End".action.move-column-to-last = {};
|
|
|
|
"Mod+Ctrl+Left".action.focus-monitor-left = {};
|
|
"Mod+Ctrl+Down".action.focus-monitor-down = {};
|
|
"Mod+Ctrl+Up".action.focus-monitor-up = {};
|
|
"Mod+Ctrl+Right".action.focus-monitor-right = {};
|
|
"Mod+Ctrl+H".action.focus-monitor-left = {};
|
|
"Mod+Ctrl+J".action.focus-monitor-down = {};
|
|
"Mod+Ctrl+K".action.focus-monitor-up = {};
|
|
"Mod+Ctrl+L".action.focus-monitor-right = {};
|
|
|
|
"Mod+F".action.maximize-column = {};
|
|
"Mod+Shift+F".action.fullscreen-window = {};
|
|
"Mod+M".action.toggle-column-tabbed-display = {};
|
|
"Mod+A".action.toggle-overview = {};
|
|
"Mod+S".action.toggle-window-floating = {};
|
|
"Mod+C".action.switch-preset-column-width = {};
|
|
|
|
"Mod+Z".action.set-column-width = "-5%";
|
|
"Mod+X".action.set-column-width = "+5%";
|
|
"Mod+Ctrl+X".action.expand-column-to-available-width = {};
|
|
"Mod+Shift+Z".action.set-window-height = "-5%";
|
|
"Mod+Shift+X".action.set-window-height = "+5%";
|
|
|
|
"Mod+Shift+WheelScrollDown".action.focus-workspace-down = {};
|
|
"Mod+Shift+WheelScrollUp".action.focus-workspace-up = {};
|
|
"Mod+WheelScrollDown".action.focus-column-right = {};
|
|
"Mod+WheelScrollUp".action.focus-column-left = {};
|
|
|
|
"Mod+WheelScrollRight".action.focus-column-right = {};
|
|
"Mod+WheelScrollLeft".action.focus-column-left = {};
|
|
"Mod+Shift+WheelScrollRight".action.move-column-right = {};
|
|
"Mod+Shift+WheelScrollLeft".action.move-column-left = {};
|
|
|
|
"Mod+q".action.focus-workspace = "01";
|
|
"Mod+w".action.focus-workspace = "02";
|
|
"Mod+e".action.focus-workspace = "03";
|
|
"Mod+r".action.focus-workspace = "04";
|
|
"Mod+t".action.focus-workspace = "05";
|
|
"Mod+Shift+q".action.move-column-to-workspace = "01";
|
|
"Mod+Shift+w".action.move-column-to-workspace = "02";
|
|
"Mod+Shift+e".action.move-column-to-workspace = "03";
|
|
"Mod+Shift+r".action.move-column-to-workspace = "04";
|
|
"Mod+Shift+t".action.move-column-to-workspace = "05";
|
|
|
|
"Mod+Comma".action.consume-or-expel-window-left = {};
|
|
"Mod+Period".action.consume-or-expel-window-right = {};
|
|
|
|
"Print".action.screenshot = {};
|
|
"Ctrl+Print".action.screenshot-screen = {};
|
|
"Alt+Print".action.screenshot-window = {};
|
|
|
|
"Mod+Slash".action.show-hotkey-overlay = {};
|
|
|
|
"Mod+Return".action.spawn = ["ghostty"];
|
|
"Mod+Backspace".action.close-window = {};
|
|
};
|
|
};
|
|
}
|