blob: 2ec930173b3c3109dd7204c278026b3ec6bb908f (
plain)
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
{ config, pkgs, lib, inputs, ... }:
{
options = {
hyprland.enable = lib.mkEnableOption "enables hyprland";
};
imports = [
./decoration.nix
./binds.nix
./input.nix
./waybar-hyprland.nix
./hyprlock.nix
./hypridle.nix
./hyprpaper.nix
./rofi-hyprland.nix
];
config = lib.mkIf config.hyprland.enable {
#fixing issues
xdg.portal = {
enable = true;
config = {
common = {
default = [ "hyprland" ];
};
};
extraPortals = with pkgs; [
xdg-desktop-portal-hyprland
];
};
home.packages = with pkgs; [
# pyprland
];
home.file.".config/hypr/pyprland.toml".source = ./pyprland.toml;
home.sessionVariables.NIXOS_OZONE_WL = "1";
home.pointerCursor = {
gtk.enable = true;
# x11.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 12;
};
gtk = {
enable = true;
theme = {
package = pkgs.flat-remix-gtk;
name = "Flat-Remix-GTK-Grey-Darkest";
};
iconTheme = {
package = pkgs.adwaita-icon-theme;
name = "Adwaita";
};
font = {
name = "Sans";
size = 11;
};
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = true;
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = true;
};
};
wayland.windowManager.hyprland.systemd.variables = ["--all"];
# ok now actually hyprland
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
settings = {
exec-once = [
"lxqt-policykit-agent"
"waybar"
"hyprpaper"
"waypaper --restore"
# "pypr"
];
# environment variables
env = [
"XCURSOR_SIZE,24"
"HYPRCURSOR_SIZE,24"
];
general = {
gaps_in = 0;
gaps_out = 0;
border_size = 1;
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
"col.active_border" = "rgba(7DAeA3ee) rgba(89B482ee) 45deg";
"col.inactive_border" = "rgba(504945ee)";
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false;
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false;
layout = "dwindle";
};
misc = {
force_default_wallpaper = 1;
disable_hyprland_logo = false;
vfr = true;
};
dwindle = {
pseudotile = true;
preserve_split = true;
};
};
extraConfig = "
xwayland {
force_zero_scaling = true;
}
";
};
};
}
|