From 81a5bc18c5fa17e40eef8488d71199994cdec2d3 Mon Sep 17 00:00:00 2001 From: mrwafflecats Date: Wed, 14 Oct 2026 20:37:29 -0500 Subject: [PATCH] added random wallpaper button --- eww.scss | 6 +++++- eww.yuck | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/eww.scss b/eww.scss index 226fc86..c01af8d 100644 --- a/eww.scss +++ b/eww.scss @@ -21,7 +21,7 @@ window { //Widgets button { - padding: 0px 7px; //top-bottom, left-right + padding: 0px 8px; //top-bottom, left-right margin: 2px; border: 1px solid black; border-radius: 5px; @@ -139,6 +139,10 @@ circular-progress { margin: 10px; } +.wallpaper{ + padding: 10px; +} + .icon { text-shadow: 0px 5px; background-color: rgba($grey,0.7); diff --git a/eww.yuck b/eww.yuck index f2a6534..4d6512c 100644 --- a/eww.yuck +++ b/eww.yuck @@ -98,6 +98,13 @@ date)) ) +(defwidget wallpaper [] + (eventbox + :onclick "awww img -o 'DP-3' $(find ~/Downloads/Wallpapers/Rotation/ -type f | shuf -n1)" + (label :class "wallpaper" :text "󰸉") + ) +) + (defwidget network [] (box :class "monitor" @@ -128,6 +135,7 @@ :icon-size 25 :prepend-new false) (sound) + (wallpaper) (time-and-date) ))