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