From 27f0c1298f8278bea690b8f5c0dde7bdcf833f2f Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sat, 11 May 2024 18:17:18 -0700 Subject: Add EWW music widget --- home.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'home.nix') diff --git a/home.nix b/home.nix index da924e5..ec6c7b2 100644 --- a/home.nix +++ b/home.nix @@ -51,8 +51,6 @@ ".local/share/Anki2" ".local/share/lutris" ".local/share/PrismLauncher" - - ".config/eww" ]; files = [ ".Xresources" @@ -75,6 +73,16 @@ 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 $1 + fi + '') + pfetch kdePackages.breeze -- cgit v1.2.3