From 822b4242183fd466c3326b2dfb26ae5a9222407c Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sun, 12 May 2024 12:57:34 -0700 Subject: Relocate some packages and scripts to better locations --- modules/home/eww.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'modules/home/eww.nix') diff --git a/modules/home/eww.nix b/modules/home/eww.nix index 70bdff2..0e6d00f 100644 --- a/modules/home/eww.nix +++ b/modules/home/eww.nix @@ -1,6 +1,20 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: { + home.packages = with pkgs; [ + eww + + (writeShellScriptBin "eww-toggle"'' + #!/usr/bin/env bash + + if ${pkgs.eww}/bin/eww active-windows | grep $1; then + ${pkgs.eww}/bin/eww close $1 + else + ${pkgs.eww}/bin/eww open $@ + fi + '') + ]; + xdg.configFile."eww/colors.css".text = let c = config.theme.colors; in '' @define-color accent #${c.accent}; -- cgit v1.2.3