From 2308ab6125f5b7302f1a3968d58ad657e68aad8a Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sun, 12 May 2024 12:47:15 -0700 Subject: Add toggleable gaps to music widget --- modules/home/eww.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'modules/home/eww.nix') diff --git a/modules/home/eww.nix b/modules/home/eww.nix index ff30977..70bdff2 100644 --- a/modules/home/eww.nix +++ b/modules/home/eww.nix @@ -94,11 +94,16 @@ ''; xdg.configFile."eww/eww.yuck".text = '' - (defwindow music [pos] + (defwindow music [pos gaps] :monitor "" :geometry (geometry - :x { pos == "right" ? "-8px" : "0px" } - :y { pos == "right" ? "-8px" : "2px" } + :x { + pos == "right" + ? gaps == "true" + ? "-8px" : "2px" + : "0px" + } + :y { gaps == "true" ? "-8px" : "2px" } :height {128 + 16} :anchor { pos == "right" ? "bottom right" : "bottom center" } ) -- cgit v1.2.3