blob: e43b5b29cbf84bc12f27e2ba1480293ea4f2b00b (
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
|
{
config,
lib,
pkgs,
...
}: let
cfg = config.features.gui.desktops.niri.parts.swayosd;
aes = config.aesthetics;
in {
options.features.gui.desktops.niri.parts.swayosd.enable = lib.mkEnableOption "swayosd";
config = lib.mkIf cfg.enable {
home.packages = [ pkgs.swayosd ];
services.swayosd = {
enable = true;
topMargin = 0.5;
stylePath = with aes.scheme; (builtins.toFile "style.scss" ''
window#osd {
border-radius: 4px;
border-width: 3px;
border-style: solid;
border-color: #${base0C};
background-color: #${base00};
color: #${base05};
}
window#osd #container {
margin: 6px;
padding: 2px;
background: transparent;
}
window#osd trough {
margin-right: 10px;
}
window#osd image {
-gtk-icon-transform: scale(0.7);
}
* {
opacity: 1;
}
'');
};
};
}
|