blob: 25636adde0e7955ea1d0b81c9c8acf077d1c6a38 (
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
|
{
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.wob;
scheme = config.modules.scheme;
fmt = col: lib.strings.removePrefix "#" col;
in
{
options.modules.wob = {
enable = lib.mkEnableOption "wob";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
bat
fd
];
services.wob = {
enable = true;
systemd = true;
settings = {
"" = {
timeout = 1000;
bar_color = fmt scheme.base05;
background_color = fmt scheme.base00;
border_color = fmt scheme.base0D;
width = 200;
margin = 8;
border_size = 1;
border_offset = 0;
overflow_mode = "nowrap";
# anchor = "top right";
anchor = "top center";
height = 25;
};
};
};
};
}
|