Files
nixos/hyprland/hypr/keybindings.nix

75 lines
2.6 KiB
Nix
Raw Permalink Normal View History

2026-04-08 17:50:06 +02:00
let
programs = import ./programs.nix;
in
{
wayland.windowManager.hyprland.settings = {
bind = [
"SUPER, RETURN, exec, ${programs.terminal}"
"SUPER, Q, killactive,"
"SUPER, X, exec, ${programs.powerMenu}"
2026-04-09 23:34:22 +02:00
"SUPER, T, exec, ${programs.themeSwitcher}"
2026-04-08 17:50:06 +02:00
"SUPER SHIFT, L, exec, ${programs.lockScreen}"
"SUPER, E, exec, ${programs.fileManager}"
2026-04-09 23:34:22 +02:00
"SUPER SHIFT, E, exec, ${programs.fileManagerTUI}"
2026-04-08 17:50:06 +02:00
"SUPER, D, exec, ${programs.menu}"
"SUPER, Print, exec, ${programs.colorPicker}"
"SUPER, P, exec, ${programs.passwordManager}"
", Print, exec, ${programs.screenshot}"
"SUPER, h, movefocus, l"
"SUPER, l, movefocus, r"
"SUPER, k, movefocus, u"
"SUPER, j, movefocus, d"
"ALT, Tab, cyclenext"
"ALT, Tab, bringactivetotop"
2026-04-09 23:34:22 +02:00
"SUPER, v, exec, ${programs.floatingModeToggle}"
"SUPER, f, fullscreen"
2026-04-08 17:50:06 +02:00
"SUPER, g, togglegroup"
"SUPER, 1, workspace, 1"
"SUPER, 2, workspace, 2"
"SUPER, 3, workspace, 3"
"SUPER, 4, workspace, 4"
"SUPER, 5, workspace, 5"
"SUPER, 6, workspace, 6"
"SUPER, 7, workspace, 7"
"SUPER, 8, workspace, 8"
"SUPER, 9, workspace, 9"
"SUPER, 0, workspace, 10"
2026-04-09 23:34:22 +02:00
"SUPER SHIFT, 1, exec, htt ~/.cache/htt/rules -m 1"
"SUPER SHIFT, 2, exec, htt ~/.cache/htt/rules -m 2"
"SUPER SHIFT, 3, exec, htt ~/.cache/htt/rules -m 3"
"SUPER SHIFT, 4, exec, htt ~/.cache/htt/rules -m 4"
"SUPER SHIFT, 5, exec, htt ~/.cache/htt/rules -m 5"
"SUPER SHIFT, 6, exec, htt ~/.cache/htt/rules -m 6"
"SUPER SHIFT, 7, exec, htt ~/.cache/htt/rules -m 7"
"SUPER SHIFT, 8, exec, htt ~/.cache/htt/rules -m 8"
"SUPER SHIFT, 9, exec, htt ~/.cache/htt/rules -m 9"
"SUPER SHIFT, 0, exec, htt ~/.cache/htt/rules -m 10"
2026-04-08 17:50:06 +02:00
"SUPER, S, togglespecialworkspace, magic"
"SUPER SHIFT, S, movetoworkspace, special:magic"
"SUPER, mouse_down, workspace, e+1"
"SUPER, mouse_up, workspace, e-1"
];
bindm = [
"SUPER, mouse:272, movewindow"
"SUPER, mouse:273, resizewindow"
];
bindel = [
",XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
",XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"
",XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
",XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle"
",XF86MonBrightnessUp, exec, swayosd-client --brightness raise"
",XF86MonBrightnessDown, exec, swayosd-client --brightness lower"
];
bindl = [
", XF86AudioNext, exec, playerctl next"
", XF86AudioPause, exec, playerctl play-pause"
", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioPrev, exec, playerctl previous"
];
};
}