-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdefault.nix
109 lines (95 loc) · 2.23 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
self,
hostname,
lib,
pkgs,
...
}:
let
theme = import "${self}/lib/theme" { inherit pkgs hostname; };
inherit (theme) colours fonts;
keybinds = builtins.readFile ./config/keybinds.conf;
outputs = (import ./config/displays.nix { }).${hostname};
windowRules = import ./config/window-rules.nix { };
in
{
imports = [
../wl-common.nix
./hyprlock.nix
./hyprshot.nix
];
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
settings = {
inherit (outputs) monitor workspace;
inherit (windowRules) windowrulev2;
"$mod" = "SUPER";
general = {
gaps_in = 4;
gaps_out = 8;
border_size = 0;
};
dwindle = {
preserve_split = true;
force_split = 2;
};
gestures = {
workspace_swipe = true;
workspace_swipe_forever = true;
workspace_swipe_invert = false;
};
input = {
kb_layout = "gb";
follow_mouse = 2;
repeat_rate = 50;
repeat_delay = 300;
};
decoration = {
rounding = 8;
shadow = {
enabled = true;
ignore_window = true;
offset = "0 5";
range = 50;
render_power = 3;
color = "rgba(00000099)";
};
};
animation = [
"border, 1, 2, default"
"fade, 1, 4, default"
"windows, 1, 3, default, popin 80%"
"workspaces, 1, 2, default, slide"
];
misc = {
background_color = "rgb(${__substring 1 7 colours.surface1})";
disable_hyprland_logo = true;
disable_splash_rendering = true;
animate_manual_resizes = true;
};
group = {
groupbar = {
font_family = "${fonts.default.name}";
font_size = 12;
gradients = true;
};
};
xwayland = {
force_zero_scaling = true;
};
};
extraConfig = ''
${keybinds}
'';
};
systemd.user.services.swaybg = {
Unit.Description = "swaybg";
Install.WantedBy = [ "hyprland-session.target" ];
Service = {
Type = "simple";
ExecStart = "${lib.getExe pkgs.swaybg} -m fill -i ${theme.wallpaper}";
Restart = "on-failure";
};
};
}