From 9eacb3d95c4f98ca795da58666741aa8a54110d8 Mon Sep 17 00:00:00 2001 From: JuliaLange Date: Fri, 16 Feb 2024 21:26:37 -0800 Subject: [PATCH] Updating eww stuff --- programs/eww/config/eww.scss | 13 +++++--- programs/eww/config/eww.yuck | 1 + .../eww/config/modules/components/index.html | 18 ----------- programs/eww/config/modules/index.html | 16 ---------- programs/eww/config/modules/switch.yuck | 15 +++++++++ programs/eww/config/scripts/index.html | 20 ------------ programs/eww/config/windows.yuck | 32 ------------------- 7 files changed, 24 insertions(+), 91 deletions(-) delete mode 100644 programs/eww/config/modules/components/index.html delete mode 100644 programs/eww/config/modules/index.html create mode 100644 programs/eww/config/modules/switch.yuck delete mode 100644 programs/eww/config/scripts/index.html delete mode 100644 programs/eww/config/windows.yuck diff --git a/programs/eww/config/eww.scss b/programs/eww/config/eww.scss index 559b968..aa4eb77 100644 --- a/programs/eww/config/eww.scss +++ b/programs/eww/config/eww.scss @@ -1,8 +1,11 @@ -box { - background-color: #1E1D2F; - color: #D9E0EE; +.content-box { + border: 4px solid yellow; + border-radius: 50px; + background-color: rgba(255,255,255,10); + margin: 2px; + box-shadow: 0 0 0 3px white; } -progressbar > trough { - min-width: 40px; +.switch { + background: transparent; } diff --git a/programs/eww/config/eww.yuck b/programs/eww/config/eww.yuck index e69de29..275b37b 100644 --- a/programs/eww/config/eww.yuck +++ b/programs/eww/config/eww.yuck @@ -0,0 +1 @@ +(include "modules/switch.yuck") diff --git a/programs/eww/config/modules/components/index.html b/programs/eww/config/modules/components/index.html deleted file mode 100644 index f47c072..0000000 --- a/programs/eww/config/modules/components/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - -Directory listing for /eww/widgets/components/ - - -

Directory listing for /eww/widgets/components/

-
- -
- - diff --git a/programs/eww/config/modules/index.html b/programs/eww/config/modules/index.html deleted file mode 100644 index dd51262..0000000 --- a/programs/eww/config/modules/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - -Directory listing for /eww/widgets/ - - -

Directory listing for /eww/widgets/

-
- -
- - diff --git a/programs/eww/config/modules/switch.yuck b/programs/eww/config/modules/switch.yuck new file mode 100644 index 0000000..108583b --- /dev/null +++ b/programs/eww/config/modules/switch.yuck @@ -0,0 +1,15 @@ +(defwindow switch + :monitor 1 + :stacking "fg" + :focusable false + :geometry (geometry :y "60%" + :width "500px" + :height "110px" + :anchor "top center") + (border + "Example contenting") +) + +(defwidget border [] + (box :class "content-box" + (children))) diff --git a/programs/eww/config/scripts/index.html b/programs/eww/config/scripts/index.html deleted file mode 100644 index 590c85c..0000000 --- a/programs/eww/config/scripts/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - -Directory listing for /eww/scripts/ - - -

Directory listing for /eww/scripts/

-
- -
- - diff --git a/programs/eww/config/windows.yuck b/programs/eww/config/windows.yuck deleted file mode 100644 index 29fb7c9..0000000 --- a/programs/eww/config/windows.yuck +++ /dev/null @@ -1,32 +0,0 @@ -(include "./widgets/bar.yuck") -(include "./widgets/powerbar.yuck") - -(defwindow bar0 - :monitor 0 - :geometry (geometry :width "100%" - :height "29px" - :anchor "top center") - :stacking "fg" - :exclusive true - (bar) -) - -(defwindow preview - :monitor 0 - :geometry (geometry :x "100px" - :y "5px" - :anchor "top right") - (image :path mediapreview) -) - -(defwindow powerbar0 - :monitor 0 - :geometry (geometry :x "100px" - :y "5px" - :anchor "top right") - (powerbar) -) - -(deflisten mediapreview :initial "hello?" - "bash $XDG_CONFIG_HOME/eww/scripts/medpreview" -)