From 3315faabe0201f9a209235ef5291f02076dbcbac Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jan 2025 10:59:42 +0100 Subject: ... --- accounts/gkleen@sif/niri/swayosd.nix | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 accounts/gkleen@sif/niri/swayosd.nix (limited to 'accounts/gkleen@sif/niri/swayosd.nix') diff --git a/accounts/gkleen@sif/niri/swayosd.nix b/accounts/gkleen@sif/niri/swayosd.nix new file mode 100644 index 00000000..48899c10 --- /dev/null +++ b/accounts/gkleen@sif/niri/swayosd.nix @@ -0,0 +1,53 @@ +{ pkgs, ... }: +{ + config = { + services.swayosd = { + enable = true; + topMargin = 0.0344; + stylePath = pkgs.runCommand "style.css" { + src = pkgs.writeText "style.scss" '' + window#osd { + padding: 12px 20px; + border-radius: 999px; + border: none; + background: rgba(0, 0, 0, 0.66); + + #container { + margin: 16px; + } + + image, + label { + color: rgb(255, 255, 255); + } + + progressbar:disabled, + image:disabled { + opacity: 0.5; + } + + progressbar { + min-height: 6px; + border-radius: 999px; + background: transparent; + border: none; + } + trough { + min-height: inherit; + border-radius: inherit; + border: none; + background: rgba(255, 255, 255, 0.5); + } + progress { + min-height: inherit; + border-radius: inherit; + border: none; + background: rgb(255, 255, 255); + } + } + ''; + buildInputs = with pkgs; [sass]; + } "scss -C --sourcemap=none $src $out"; + }; + }; +} -- cgit v1.2.3