1
Fork 0
nixos-system-config/home/packages/hyprland.nix

123 lines
3 KiB
Nix
Raw Normal View History

{ inputs, pkgs, ... }:
{
2024-06-23 14:40:05 +02:00
services.hyprpaper = {
enable = true;
settings = {
ipc = "on";
splash = false;
preload = [
"/nix/config/assets/wallpaper.jpg"
];
wallpaper = [
",/nix/config/assets/wallpaper.jpg"
];
};
2024-06-23 14:40:05 +02:00
};
2024-06-23 14:40:05 +02:00
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
2024-06-23 14:40:05 +02:00
systemd = {
enable = true;
variables = [ "--all" ];
};
2024-07-10 13:04:56 +02:00
2024-06-23 14:40:05 +02:00
settings = {
"$mod" = "SUPER";
"$terminal" = "foot";
"$menu" = "rofi -show drun";
2024-06-23 14:40:05 +02:00
monitor = "DP-1,1920x1080@144,auto,1";
# Freezes Firefox, enable later when useable.
# experimental = {
# explicit_sync = true;
# };
2024-07-26 20:48:08 +02:00
cursor = {
no_hardware_cursors = true;
};
2024-06-23 14:40:05 +02:00
input = {
kb_layout = "gb:intl";
follow_mouse = 1;
};
2024-06-23 14:40:05 +02:00
general = {
2024-06-24 01:08:43 +02:00
gaps_in = 3;
gaps_out = 6;
border_size = 2;
2024-06-23 14:40:05 +02:00
layout = "master";
allow_tearing = true;
"col.inactive_border" = "rgb(242424)";
"col.active_border" = "rgb(3584E4)";
};
2024-06-23 14:40:05 +02:00
master = {
mfact = 0.5;
};
decoration = {
rounding = 5;
blur = {
enabled = true;
size = 4;
2024-06-23 14:40:05 +02:00
passes = 1;
};
};
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
2024-06-23 14:40:05 +02:00
bind = [
"$mod, P, exec, $menu"
"$mod, RETURN, exec, $terminal"
", Scroll_Lock, exec, pavucontrol"
"$mod, f, exec, nautilus"
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-"
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", Pause, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
2024-06-23 14:40:05 +02:00
"$mod SHIFT, C, killactive"
"$mod, SPACE, togglefloating"
"$mod SHIFT, M, exit,"
"$mod SHIFT, RETURN, layoutmsg, swapwithmaster"
"$mod SHIFT, h, layoutmsg, mfact -0.05"
"$mod SHIFT, l, layoutmsg, mfact +0.05"
"$mod, h, movefocus, l"
"$mod, j, movefocus, d"
"$mod, k, movefocus, u"
"$mod, l, movefocus, r"
"$mod, 1, workspace, 1"
"$mod, 2, workspace, 2"
"$mod, 3, workspace, 3"
"$mod, 4, workspace, 4"
"$mod, 5, workspace, 5"
"$mod, 6, workspace, 6"
"$mod, 7, workspace, 7"
"$mod, 8, workspace, 8"
"$mod, 9, workspace, 9"
"$mod SHIFT, 1, movetoworkspace, 1"
"$mod SHIFT, 2, movetoworkspace, 2"
"$mod SHIFT, 3, movetoworkspace, 3"
"$mod SHIFT, 4, movetoworkspace, 4"
"$mod SHIFT, 5, movetoworkspace, 5"
"$mod SHIFT, 6, movetoworkspace, 6"
"$mod SHIFT, 7, movetoworkspace, 7"
"$mod SHIFT, 8, movetoworkspace, 8"
"$mod SHIFT, 9, movetoworkspace, 9"
];
};
};
}