New backup 2025-03-04 19:45:01
This commit is contained in:
parent
ff1d3c6fbf
commit
0b752e14d2
3 changed files with 27 additions and 1 deletions
|
@ -7,7 +7,6 @@
|
||||||
// Global Styles
|
// Global Styles
|
||||||
.bar {
|
.bar {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
|
||||||
.music {
|
.music {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
@ -109,3 +108,4 @@ button.active {
|
||||||
.reveal_children>box:only-child {
|
.reveal_children>box:only-child {
|
||||||
border-radius:8px;
|
border-radius:8px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -346,3 +346,23 @@
|
||||||
:anchor "top center")
|
:anchor "top center")
|
||||||
:reserve (struts :side "top" :distance "4%")
|
:reserve (struts :side "top" :distance "4%")
|
||||||
(bar))
|
(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))
|
||||||
|
|
6
de/home/.config/eww/scripts/randomrat
Executable file
6
de/home/.config/eww/scripts/randomrat
Executable 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}"
|
Loading…
Add table
Reference in a new issue