New backup 2025-03-04 20:15:01
This commit is contained in:
parent
177a90a89a
commit
a3091ac02c
3 changed files with 12 additions and 10 deletions
|
@ -111,4 +111,6 @@ button.active {
|
||||||
}
|
}
|
||||||
.rat {
|
.rat {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
|
@ -347,25 +347,25 @@
|
||||||
:reserve (struts :side "top" :distance "4%")
|
:reserve (struts :side "top" :distance "4%")
|
||||||
(bar))
|
(bar))
|
||||||
|
|
||||||
;(defpoll rat_image :interval "5s"
|
(defpoll rat_image :interval "5s"
|
||||||
; 'scripts/randomrat')
|
'scripts/randomrat')
|
||||||
(defvar rat_image "/home/penelope/Pictures/Phone/Albums/Rattos/20211109_042550_IMG_9873.JPG")
|
;(defvar rat_image "/home/penelope/Pictures/Phone/Albums/Rattos/20211109_042550_IMG_9873.JPG")
|
||||||
(defwidget rat []
|
(defwidget rat []
|
||||||
(box
|
(box
|
||||||
|
:class "rat"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
|
:width 400
|
||||||
|
:height 400
|
||||||
:space-evenly true
|
:space-evenly true
|
||||||
(image :class "rat"
|
:style "background-image: url('${rat_image}');"))
|
||||||
:path {rat_image}
|
|
||||||
:image-width 100
|
|
||||||
:preserve-aspect-ratio false)))
|
|
||||||
|
|
||||||
(defwindow widgets
|
(defwindow widgets
|
||||||
:windowtype "normal"
|
:windowtype "normal"
|
||||||
:exclusive false
|
:exclusive false
|
||||||
:geometry (geometry :x "10%"
|
:geometry (geometry :x "10%"
|
||||||
:y "10%"
|
:y "10%"
|
||||||
:width "20px"
|
:width "10px"
|
||||||
:height "50px"
|
:height "10px"
|
||||||
:anchor "top center")
|
:anchor "top center")
|
||||||
:stacking "bg"
|
:stacking "bg"
|
||||||
(rat))
|
(rat))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
img_dir="${HOME}/Pictures/Phone/Albums/Rattos/"
|
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_list=$( find "${img_dir}" -iname "*.jpg" -or -iname "*.png" )
|
||||||
img=$( shuf -n 1 <<< ${img_list} )
|
img=$( shuf -n 1 <<< ${img_list} )
|
||||||
echo "${img}"
|
echo "${img}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue