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 {
 | 
			
		||||
  border-radius: 8px;
 | 
			
		||||
  background-size: cover;
 | 
			
		||||
  background-repeat: no-repeat;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -347,25 +347,25 @@
 | 
			
		|||
  :reserve (struts :side "top" :distance "4%")
 | 
			
		||||
  (bar))
 | 
			
		||||
 | 
			
		||||
;(defpoll rat_image :interval "5s"
 | 
			
		||||
;  'scripts/randomrat')
 | 
			
		||||
(defvar rat_image "/home/penelope/Pictures/Phone/Albums/Rattos/20211109_042550_IMG_9873.JPG")
 | 
			
		||||
(defpoll rat_image :interval "5s"
 | 
			
		||||
  'scripts/randomrat')
 | 
			
		||||
;(defvar rat_image "/home/penelope/Pictures/Phone/Albums/Rattos/20211109_042550_IMG_9873.JPG")
 | 
			
		||||
(defwidget rat []
 | 
			
		||||
  (box
 | 
			
		||||
    :class "rat"
 | 
			
		||||
    :orientation "h"
 | 
			
		||||
    :width 400
 | 
			
		||||
    :height 400
 | 
			
		||||
    :space-evenly true
 | 
			
		||||
    (image :class "rat"
 | 
			
		||||
         :path {rat_image}
 | 
			
		||||
         :image-width 100
 | 
			
		||||
         :preserve-aspect-ratio false)))
 | 
			
		||||
    :style "background-image: url('${rat_image}');"))
 | 
			
		||||
 | 
			
		||||
(defwindow widgets
 | 
			
		||||
  :windowtype "normal"
 | 
			
		||||
  :exclusive false
 | 
			
		||||
  :geometry (geometry :x "10%"
 | 
			
		||||
    :y "10%"
 | 
			
		||||
    :width "20px"
 | 
			
		||||
    :height "50px"
 | 
			
		||||
    :width "10px"
 | 
			
		||||
    :height "10px"
 | 
			
		||||
    :anchor "top center")
 | 
			
		||||
  :stacking "bg"
 | 
			
		||||
  (rat))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +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_list=$( find "${img_dir}" -iname "*.jpg" -or -iname "*.png" )
 | 
			
		||||
img=$( shuf -n 1 <<< ${img_list} )
 | 
			
		||||
echo "${img}"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue