stuff
This commit is contained in:
parent
49cca73363
commit
c05813575f
40 changed files with 2364 additions and 526 deletions
69
home-manager/modules/niri/keybinds.nix
Normal file
69
home-manager/modules/niri/keybinds.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
apps = import ./applications.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
programs.niri.settings.binds =
|
||||
with config.lib.niri.actions;
|
||||
let
|
||||
pactl = "${pkgs.pulseaudio}/bin/pactl";
|
||||
|
||||
volume-up = spawn pactl [
|
||||
"set-sink-volume"
|
||||
"@DEFAULT_SINK@"
|
||||
"+5%"
|
||||
];
|
||||
volume-down = spawn pactl [
|
||||
"set-sink-volume"
|
||||
"@DEFAULT_SINK@"
|
||||
"-5%"
|
||||
];
|
||||
in
|
||||
{
|
||||
# Quickshell Keybinds Start
|
||||
"super+space".action = spawn [
|
||||
"noctalia-shell"
|
||||
"ipc"
|
||||
"call"
|
||||
"launcher"
|
||||
"toggle"
|
||||
];
|
||||
# Quickshell Keybinds End
|
||||
|
||||
"xf86audioraisevolume".action = volume-up;
|
||||
"xf86audiolowervolume".action = volume-down;
|
||||
|
||||
"control+super+xf86audioraisevolume".action = spawn "brightness" "up";
|
||||
"control+super+xf86audiolowervolume".action = spawn "brightness" "down";
|
||||
|
||||
"super+q".action = close-window;
|
||||
"super+b".action = spawn apps.browser;
|
||||
"super+Return".action = spawn apps.terminal;
|
||||
#"super+Control+Return".action = spawn apps.appLauncher;
|
||||
"super+E".action = spawn apps.fileManager;
|
||||
|
||||
"super+f".action = maximize-column;
|
||||
"super+Shift+f".action = fullscreen-window;
|
||||
"super+t".action = toggle-window-floating;
|
||||
"super+r".action = switch-preset-column-width;
|
||||
"super+Shift+r".action = switch-preset-window-height;
|
||||
|
||||
# "control+shift+1".action = screenshot;
|
||||
# "control+shift+2".action = screenshot-window {write-to-disk = true;};
|
||||
|
||||
"super+Left".action = focus-column-left;
|
||||
"super+Right".action = focus-column-right;
|
||||
"super+Down".action = focus-workspace-down;
|
||||
"super+Up".action = focus-workspace-up;
|
||||
|
||||
"super+Shift+Left".action = move-column-left;
|
||||
"super+Shift+Right".action = move-column-right;
|
||||
"super+Shift+Down".action = move-column-to-workspace-down;
|
||||
"super+Shift+Up".action = move-column-to-workspace-up;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue