tangled
alpha
login
or
join now
pluie.me
/
flake
2
fork
atom
All my system configs and packages in one repo
2
fork
atom
overview
issues
pulls
pipelines
presets/niri: fix qt styling
pluie.me
8 months ago
c77694f3
205005fa
verified
This commit was signed with the committer's
known signature
.
pluie.me
SSH Key Fingerprint:
SHA256:YtI1D7vlcZ4obaiJ4tQihtswcMhHKdfYZuc4whOX2y8=
+18
-19
2 changed files
expand all
collapse all
unified
split
users
leah
appearance.nix
presets
niri
gui-toolkits.nix
-18
users/leah/appearance.nix
···
25
25
};
26
26
};
27
27
28
28
-
# programs.dconf.profiles.user.databases = [
29
29
-
# {
30
30
-
# settings = {
31
31
-
# "org/gnome/desktop/interface" = {
32
32
-
# font-name = "DM Sans 13";
33
33
-
# gtk-theme = "Adwaita";
34
34
-
# icon-theme = "Adwaita";
35
35
-
# color-scheme = "prefer-dark";
36
36
-
# # Not exactly maroon, but close enough
37
37
-
# accent-color = "pink";
38
38
-
# cursor-theme = "BreezeX-Dark";
39
39
-
# cursor-size = lib.gvariant.mkInt32 32;
40
40
-
# };
41
41
-
# };
42
42
-
# }
43
43
-
# ];
44
44
-
45
28
hjem.users.leah = {
46
29
ctp = {
47
30
enable = true;
···
52
35
53
36
packages = with pkgs; [
54
37
breezex-cursor
55
55
-
adw-gtk3
56
38
adwaita-icon-theme
57
39
];
58
40
+18
-1
users/leah/presets/niri/gui-toolkits.nix
···
4
4
...
5
5
}:
6
6
{
7
7
+
# Make both GTK 3 and Qt apps follow GTK 4-like theming... sorta
7
8
hjem.users.leah.packages = with pkgs; [
9
9
+
adw-gtk3
8
10
qadwaitadecorations
9
11
qadwaitadecorations-qt6
10
12
];
11
13
12
14
qt.enable = true;
13
13
-
environment.variables.QT_QPA_PLATFORMTHEME = "adwaita";
15
15
+
16
16
+
# TODO: Use the corresponding `qt.*` options when they become available
17
17
+
environment.sessionVariables = {
18
18
+
# Make Qt apps look like GTK 3 apps.
19
19
+
# Ideally I want to make them look like GTK 4 + Adwaita apps instead,
20
20
+
# but it's not really viable with `adwaita-qt` being discontinued
21
21
+
QT_QPA_PLATFORMTHEME = "gtk3";
22
22
+
23
23
+
# At least we can have an Adwaita-style CSD
24
24
+
QT_WAYLAND_DECORATION = "adwaita";
25
25
+
};
14
26
15
27
programs.dconf.profiles.user.databases = [
16
28
{
···
18
30
"org/gnome/desktop/wm/preferences" = {
19
31
# Both minimize and maximize do nothing in niri
20
32
button-layout = "icon:close";
33
33
+
};
34
34
+
"org/gnome/desktop/interface" = {
35
35
+
accent-color = "pink";
36
36
+
color-scheme = "prefer-dark";
37
37
+
font-name = "DM Sans 13";
21
38
};
22
39
};
23
40
}