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
leah/niri: add wleave; hjem-ctp: add wleave
pluie.me
7 months ago
fa5d1594
0a329f7c
verified
This commit was signed with the committer's
known signature
.
pluie.me
SSH Key Fingerprint:
SHA256:YtI1D7vlcZ4obaiJ4tQihtswcMhHKdfYZuc4whOX2y8=
+60
-2
6 changed files
expand all
collapse all
unified
split
modules
hjem-ctp
default.nix
wleave.nix
users
leah
presets
niri
default.nix
waybar
config.nix
style.css
programs
default.nix
+1
modules/hjem-ctp/default.nix
···
21
21
./fuzzel.nix
22
22
# ./plasma.nix
23
23
./vencord.nix
24
24
+
./wleave.nix
24
25
];
25
26
26
27
_module.args = { inherit ctp-lib; };
+46
modules/hjem-ctp/wleave.nix
···
1
1
+
# Catppuccin theme for wleave
2
2
+
{
3
3
+
config,
4
4
+
ctp-lib,
5
5
+
lib,
6
6
+
pkgs,
7
7
+
...
8
8
+
}:
9
9
+
let
10
10
+
cfg = config.ctp.wleave;
11
11
+
12
12
+
src = pkgs.fetchFromGitHub {
13
13
+
owner = "catppuccin";
14
14
+
repo = "wleave";
15
15
+
rev = "b690cee13b944890e43a5fb629ccdff86cffbbb3";
16
16
+
hash = "sha256-QUSDx5M+BG7YqI4MBsOKFPxvZHQtCa8ibT0Ln4FPQ7I=";
17
17
+
};
18
18
+
19
19
+
# Generate the CSS required to override all icons
20
20
+
# with their Catppuccin-ified counterparts
21
21
+
iconsCss =
22
22
+
lib.concatMapStrings
23
23
+
(btn: ''
24
24
+
#${btn} { background-image: url("${src}/icons/wleave/${cfg.flavor}/${cfg.accent}/${btn}.svg"); }
25
25
+
'')
26
26
+
[
27
27
+
"lock"
28
28
+
"logout"
29
29
+
"suspend"
30
30
+
"hibernate"
31
31
+
"shutdown"
32
32
+
"reboot"
33
33
+
];
34
34
+
in
35
35
+
{
36
36
+
options.ctp.wleave = ctp-lib.mkCatppuccinOptions "wleave" {
37
37
+
withAccent = true;
38
38
+
};
39
39
+
40
40
+
config = lib.mkIf cfg.enable {
41
41
+
files.".config/wleave/style.css".source = pkgs.concatText "wleave-style.css" [
42
42
+
"${src}/themes/${cfg.flavor}/${cfg.accent}.css"
43
43
+
(pkgs.writeText "wleave-icons.css" iconsCss)
44
44
+
];
45
45
+
};
46
46
+
}
+1
users/leah/presets/niri/default.nix
···
22
22
waybar
23
23
xwayland-satellite
24
24
brightnessctl
25
25
+
wleave
25
26
26
27
# Desktop utilities
27
28
file-roller
+6
-1
users/leah/presets/niri/waybar/config.nix
···
21
21
22
22
text = ''
23
23
poll_rate=$1
24
24
-
intel_gpu_top -J -s $poll_rate | jq -c --unbuffered --stream '
24
24
+
intel_gpu_top -J -s "$poll_rate" | jq -c --unbuffered --stream '
25
25
fromstream(2|truncate_stream(inputs))
26
26
| select(has("Render/3D"))
27
27
| {
···
44
44
"group/appearance"
45
45
"group/connectivity"
46
46
"battery"
47
47
+
"custom/wleave"
47
48
];
48
49
49
50
"group/apps" = {
···
175
176
on-click = "swaync-client -t -sw";
176
177
on-click-right = "swaync-client -d -sw";
177
178
escape = true;
179
179
+
};
180
180
+
"custom/wleave" = {
181
181
+
format = "";
182
182
+
on-click = "wleave";
178
183
};
179
184
}
180
185
{
+5
-1
users/leah/presets/niri/waybar/style.css
···
77
77
#cpu {
78
78
color: #fab387; /* Peach */
79
79
}
80
80
-
#custom-gpu {
80
80
+
#custom-gpu-nvidia, #custom-gpu-intel {
81
81
color: #b4befe; /* Lavender */
82
82
}
83
83
#memory {
···
110
110
color: #fab387; /* Peach */
111
111
}
112
112
#battery.critical {
113
113
+
color: #f38ba8; /* Red */
114
114
+
}
115
115
+
116
116
+
#custom-wleave {
113
117
color: #f38ba8; /* Red */
114
118
}
115
119
+1
users/leah/programs/default.nix
···
34
34
vlc
35
35
thunderbird
36
36
telegram-desktop
37
37
+
inkscape
37
38
38
39
# Command-line apps
39
40
just