New backup 2025-03-04 19:45:01

This commit is contained in:
Penelope Gwen 2025-03-04 19:45:01 -08:00
parent ff1d3c6fbf
commit 0b752e14d2
3 changed files with 27 additions and 1 deletions

View file

@ -7,7 +7,6 @@
// Global Styles
.bar {
padding: 0px;
}
.music {
margin: 10px;
}
@ -109,3 +108,4 @@ button.active {
.reveal_children>box:only-child {
border-radius:8px;
}
}

View file

@ -346,3 +346,23 @@
:anchor "top center")
:reserve (struts :side "top" :distance "4%")
(bar))
(defpoll rat_image :interval "5s"
'scripts/randomrat')
(defwidget rat []
(box
(image :class "rat"
:path {rat_image}
:image-width: 20
:preserve-aspect-ratio false)))
(defwindow widgets
:windowtype "normal"
:exclusive false
:geometry (geometry :x "10%"
:y "10%"
:width "50px"
:height "50px"
:anchor "top center")
:stacking "bg"
(rat))

View file

@ -0,0 +1,6 @@
#!/bin/bash
img_dir="${HOME}/Pictures/Phone/Albums/Rattos/"
img_list=$( find "${img_dir}" -name "*.jpg" -or -name "*.heic" -or -name "*.png" -or -name "*.HEIC" -or -name "*.JPG" -or -name "*.PNG" )
img=$( shuf -n 1 <<< ${img_list} )
echo "${img}"