aboutsummaryrefslogtreecommitdiff
path: root/home.nix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2024-05-11 18:17:18 -0700
committerCaroline Larimore <caroline@larimo.re>2024-05-11 18:17:18 -0700
commit27f0c1298f8278bea690b8f5c0dde7bdcf833f2f (patch)
tree5911a1509b3c7cdd2ffba5078a90cf3e16828f23 /home.nix
parentd0d01097a92c1211eeeac95bc79b3571167a738f (diff)
Add EWW music widget
Diffstat (limited to 'home.nix')
-rw-r--r--home.nix12
1 files changed, 10 insertions, 2 deletions
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