flocon/home/laptop/hyprland/default.nix

58 lines
1.6 KiB
Nix
Raw Normal View History

2024-09-04 21:40:24 +00:00
{ inputs, pkgs, ... }:
{
2024-09-06 02:32:07 +00:00
imports = [./hyprlock.nix];
2024-09-04 21:40:24 +00:00
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
2024-09-04 21:40:24 +00:00
settings = {
"$mod" = "SUPER";
2024-09-06 02:32:07 +00:00
"$terminal" = "kitty"; "$menu" = "fuzzel";
"monitor" = "eDP-1, 2256x1504@60, 0x0, 1.6";
2024-09-04 21:40:24 +00:00
input.touchpad.natural_scroll = true;
gestures.workspace_swipe = true;
xwayland.force_zero_scaling = true;
bind =
[
"$mod, Return, exec, $terminal"
"$mod, R, exec, $menu"
"$mod, F, exec, firefox"
"$mod, Q, killactive"
"$mod, M, exit"
"$mod, H, movefocus, l"
"$mod, L, movefocus, r"
"$mod, K, movefocus, u"
"$mod, J, movefocus, d"
", Print, exec, grimblast copy area"
]
++ (
# workspaces
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
builtins.concatLists (builtins.genList (i:
let ws = i + 1;
in [
"$mod, code:1${toString i}, workspace, ${toString ws}"
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
]
)
9)
);
};
};
services.hyprpaper = {
enable = true;
package = inputs.hyprpaper.packages.${pkgs.stdenv.hostPlatform.system}.hyprpaper;
settings = {
wallpaper = [
",${../../../wallpapers/nix-wallpaper-nineish-catppuccin-frappe-alt.svg}"
];
};
};
programs.fuzzel.enable = true;
2024-09-06 02:32:07 +00:00
2024-09-04 21:40:24 +00:00
home.packages = with inputs.hyprland-contrib.packages.${pkgs.system}; [
grimblast
];
}