New backup 2025-03-05 19:30:07
This commit is contained in:
parent
169eb3356b
commit
4f54013139
6 changed files with 62 additions and 43 deletions
|
@ -47,56 +47,17 @@
|
|||
|
||||
(include "modules/bar/music.yuck")
|
||||
|
||||
(defwidget metric [label value onchange]
|
||||
(box :orientation "h"
|
||||
:class "metric"
|
||||
:space-evenly false
|
||||
(box :class "label" label)
|
||||
(circular-progress
|
||||
:active {onchange != ""}
|
||||
:value value
|
||||
:start-at 0
|
||||
:thickness 10
|
||||
:clockwise true
|
||||
:onchange onchange)))
|
||||
(include "modules/bar/metric.yuck")
|
||||
|
||||
;(defpoll time :interval "10s"
|
||||
; "date '+%H:%M %b %d, %Y'")
|
||||
|
||||
(include "modules/bar.yuck")
|
||||
|
||||
(defwidget widgets []
|
||||
(box :class "widgets"
|
||||
:orientation "v"
|
||||
:spacing 10
|
||||
:width 300
|
||||
:space-evenly false
|
||||
(rat)
|
||||
(weather :json weather_status)))
|
||||
(include "modules/widgets.yuck")
|
||||
|
||||
(defpoll rat_image :interval "60s"
|
||||
'scripts/randomrat')
|
||||
;(defvar rat_image "/home/penelope/Pictures/Phone/Albums/Rattos/20211109_042550_IMG_9873.JPG")
|
||||
(defwidget rat []
|
||||
(box
|
||||
:class "rat"
|
||||
:orientation "h"
|
||||
:width 300
|
||||
:height 300
|
||||
:style "background-image: url('${rat_image}');"))
|
||||
(include "modules/widgets/rat.yuck")
|
||||
|
||||
(defpoll weather_status :interval "3600s"
|
||||
'curl wttr.in/Eugene?format=j1')
|
||||
(defwidget weather [json]
|
||||
(box
|
||||
:class "weather"
|
||||
:orientation "v"
|
||||
:width 300
|
||||
:height 125
|
||||
:space-evenly true
|
||||
"Eugene, OR | ${json.current_condition[0].weatherDesc[0].value}"
|
||||
"${json.current_condition[0].temp_F}°F (feels like ${json.current_condition[0].FeelsLikeF}°F)"
|
||||
"${json.weather[0].mintempF}°F / ${json.weather[0].maxtempF}°F"
|
||||
"${json.current_condition[0].humidity}% humidity"))
|
||||
(include "modules/widgets/weather.yuck")
|
||||
|
||||
(include "windows.yuck")
|
||||
|
|
12
de/home/.config/eww/modules/bar/metric.yuck
Normal file
12
de/home/.config/eww/modules/bar/metric.yuck
Normal file
|
@ -0,0 +1,12 @@
|
|||
(defwidget metric [label value onchange]
|
||||
(box :orientation "h"
|
||||
:class "metric"
|
||||
:space-evenly false
|
||||
(box :class "label" label)
|
||||
(circular-progress
|
||||
:active {onchange != ""}
|
||||
:value value
|
||||
:start-at 0
|
||||
:thickness 10
|
||||
:clockwise true
|
||||
:onchange onchange)))
|
16
de/home/.config/eww/modules/bar/revealer-on-hover.yuck
Normal file
16
de/home/.config/eww/modules/bar/revealer-on-hover.yuck
Normal file
|
@ -0,0 +1,16 @@
|
|||
(defwidget revealer-on-hover [revealvar revealvar-name ?class ?duration ?transition]
|
||||
(box
|
||||
:class "${class} revealer-on-hover"
|
||||
:orientation "h"
|
||||
:space-evently false
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update ${revealvar-name}=true"
|
||||
:onhoverlost "${EWW_CMD} update ${revealvar-name}=false"
|
||||
(box
|
||||
:space-evenly false
|
||||
(children :nth 0)
|
||||
(revealer
|
||||
:reveal revealvar
|
||||
:transition {transition ?: "slideright"}
|
||||
:duration {duration ?: "500ms"}
|
||||
(children :nth 1))))))
|
8
de/home/.config/eww/modules/widgets.yuck
Normal file
8
de/home/.config/eww/modules/widgets.yuck
Normal file
|
@ -0,0 +1,8 @@
|
|||
(defwidget widgets []
|
||||
(box :class "widgets"
|
||||
:orientation "v"
|
||||
:spacing 10
|
||||
:width 300
|
||||
:space-evenly false
|
||||
(rat)
|
||||
(weather :json weather_status)))
|
9
de/home/.config/eww/modules/widgets/rat.yuck
Normal file
9
de/home/.config/eww/modules/widgets/rat.yuck
Normal file
|
@ -0,0 +1,9 @@
|
|||
(defpoll rat_image :interval "60s"
|
||||
'scripts/randomrat')
|
||||
(defwidget rat []
|
||||
(box
|
||||
:class "rat"
|
||||
:orientation "h"
|
||||
:width 300
|
||||
:height 300
|
||||
:style "background-image: url('${rat_image}');"))
|
13
de/home/.config/eww/modules/widgets/weather.yuck
Normal file
13
de/home/.config/eww/modules/widgets/weather.yuck
Normal file
|
@ -0,0 +1,13 @@
|
|||
(defpoll weather_status :interval "3600s"
|
||||
'curl wttr.in/Eugene?format=j1')
|
||||
(defwidget weather [json]
|
||||
(box
|
||||
:class "weather"
|
||||
:orientation "v"
|
||||
:width 300
|
||||
:height 125
|
||||
:space-evenly true
|
||||
"Eugene, OR | ${json.current_condition[0].weatherDesc[0].value}"
|
||||
"${json.current_condition[0].temp_F}°F (feels like ${json.current_condition[0].FeelsLikeF}°F)"
|
||||
"${json.weather[0].mintempF}°F / ${json.weather[0].maxtempF}°F"
|
||||
"${json.current_condition[0].humidity}% humidity"))
|
Loading…
Add table
Reference in a new issue