diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-07-14 20:48:01 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-07-14 20:48:01 -0400 |
| commit | 96e509f7cdb9d7065cc0c4327488f1f08323a6ae (patch) | |
| tree | 393716a8989456a5d3a6f5f4a7be197aa2a99ca0 | |
| parent | 7067a9633894f264cd75fa3dda7779237fcd8a68 (diff) | |
| download | home-96e509f7cdb9d7065cc0c4327488f1f08323a6ae.tar.gz | |
modules/wob: init
| -rw-r--r-- | fw/home.nix | 1 | ||||
| -rw-r--r-- | modules/wob.nix | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/fw/home.nix b/fw/home.nix index 99acdde..ebe87a4 100644 --- a/fw/home.nix +++ b/fw/home.nix @@ -39,6 +39,7 @@ key = "B5200ABFBD213FC9C17C6DB91291CBBCF3B9F225"; }; + wob.enable = true; foot.enable = true; neovim = { diff --git a/modules/wob.nix b/modules/wob.nix new file mode 100644 index 0000000..fc6c062 --- /dev/null +++ b/modules/wob.nix @@ -0,0 +1,37 @@ +{ 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"; + height = 25; + }; + }; + }; + }; +} |