added random wallpaper button

This commit is contained in:
2026-10-14 20:37:29 -05:00
parent 8f8cf3b489
commit 81a5bc18c5
2 changed files with 13 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ window {
//Widgets //Widgets
button { button {
padding: 0px 7px; //top-bottom, left-right padding: 0px 8px; //top-bottom, left-right
margin: 2px; margin: 2px;
border: 1px solid black; border: 1px solid black;
border-radius: 5px; border-radius: 5px;
@@ -139,6 +139,10 @@ circular-progress {
margin: 10px; margin: 10px;
} }
.wallpaper{
padding: 10px;
}
.icon { .icon {
text-shadow: 0px 5px; text-shadow: 0px 5px;
background-color: rgba($grey,0.7); background-color: rgba($grey,0.7);

View File

@@ -98,6 +98,13 @@
date)) date))
) )
(defwidget wallpaper []
(eventbox
:onclick "awww img -o 'DP-3' $(find ~/Downloads/Wallpapers/Rotation/ -type f | shuf -n1)"
(label :class "wallpaper" :text "󰸉")
)
)
(defwidget network [] (defwidget network []
(box (box
:class "monitor" :class "monitor"
@@ -128,6 +135,7 @@
:icon-size 25 :icon-size 25
:prepend-new false) :prepend-new false)
(sound) (sound)
(wallpaper)
(time-and-date) (time-and-date)
)) ))