New backup 2025-07-18 18:15:02

This commit is contained in:
Penelope Gwen 2025-07-18 18:15:02 -07:00
parent ef35bf3464
commit 7cb56da131
11 changed files with 32 additions and 30 deletions

View file

@ -303,12 +303,13 @@ $home-widget-border-hover-color: rgba($color5,0.3);
border: 3px solid $home-widget-border-color; border: 3px solid $home-widget-border-color;
border-radius: $home-widget-border-radius; border-radius: $home-widget-border-radius;
background-color: $home-widget-bg-color; background-color: $home-widget-bg-color;
.nowplayingart,
.mediacontrols { .mediacontrols {
margin-left: 10px; margin: 10px;
// margin-left: 10px;
} }
.nowplayingart { .nowplayingart {
// border: 1px solid $home-widget-border-color; // border: 1px solid $home-widget-border-color;
margin: 10px;
border-radius: $home-widget-border-radius; border-radius: $home-widget-border-radius;
} }
.mediabutton { .mediabutton {

View file

@ -2,7 +2,7 @@
(box :class "home" (box :class "home"
:orientation "v" :orientation "v"
:spacing 10 :spacing 10
:width 250 :width 300
:space-evenly false :space-evenly false
(nowplayingbar) (nowplayingbar)
(rat) (rat)

View file

@ -8,9 +8,9 @@
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9} :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
:revealvar reveal_notes :revealvar reveal_notes
:revealvar-name "reveal_notes" :revealvar-name "reveal_notes"
:width 250 :width 300
(button (button
:width 250 :width 300
:class "revealer-title" :class "revealer-title"
"Notes ${reveal_notes ? '' : ''}") "Notes ${reveal_notes ? '' : ''}")
(notes :json {jq(notes_list,'.notes')}))) (notes :json {jq(notes_list,'.notes')})))

View file

@ -6,17 +6,18 @@
(box (box
:class "nowplayingbar" :class "nowplayingbar"
:orientation "h" :orientation "h"
:space-evenly false :space-evenly true
:halign "start" :halign "fill"
:width 250 :width 300
:height 75 :height 100
(button (button
:height 75 :visible true
:width 75 :height 100
:width 100
:valign "center" :valign "center"
:halign "start" :halign "center"
:hexpand false ; :hexpand false
:vexpand false ; :vexpand false
(nowplayingart)) (nowplayingart))
; (label :width 0 ; (label :width 0
; :text "") ; :text "")
@ -24,9 +25,9 @@
:class "mediacontrols" :class "mediacontrols"
:orientation "h" :orientation "h"
:space-evenly true :space-evenly true
:halign "end" :halign "fill"
:width 155 ; :width 130
; :spacing 0 ; :spacing 20
:height 50 :height 50
(button (button
:class "mediabutton" :class "mediabutton"
@ -38,14 +39,14 @@
(button (button
:class "mediabutton" :class "mediabutton"
:valign "center" :valign "center"
:halign "center" :halign "start"
:height 25 :height 25
:width 25 :width 25
"󰐎") "󰐎")
(button (button
:class "mediabutton" :class "mediabutton"
:valign "center" :valign "center"
:halign "end" :halign "start"
:height 25 :height 25
:width 25 :width 25
"")))) ""))))

View file

@ -4,6 +4,6 @@
(box (box
:class "rat" :class "rat"
:orientation "h" :orientation "h"
:width 250 :width 300
:height 250 :height 300
:style "background-image: url('${rat_image}');")) :style "background-image: url('${rat_image}');"))

View file

@ -11,7 +11,7 @@
:revealvar-name "reveal_reminders" :revealvar-name "reveal_reminders"
; {reveal_reminders ? "" : ""} ; {reveal_reminders ? "" : ""}
(button (button
:width 250 :width 300
:class "revealer-title" :class "revealer-title"
"Reminders ${reveal_reminders ? '' : ''}") "Reminders ${reveal_reminders ? '' : ''}")
(reminders :json {jq(reminders_list,'.reminders')}))) (reminders :json {jq(reminders_list,'.reminders')})))
@ -21,7 +21,7 @@
:class "reminders" :class "reminders"
:orientation "v" :orientation "v"
:halign "baseline" :halign "baseline"
; :width 250 ; :width 300
; :height 150 ; :height 150
:space-evenly true :space-evenly true
(for reminder in json (for reminder in json

View file

@ -1,7 +1,7 @@
(defwidget revealer-on-press [revealvar revealvar-name ?class ?duration ?transition] (defwidget revealer-on-press [revealvar revealvar-name ?class ?duration ?transition]
(box (box
:class "${class} revealer-on-press ${revealvar ? 'revealer_opened' : 'revealer_closed'}" :class "${class} revealer-on-press ${revealvar ? 'revealer_opened' : 'revealer_closed'}"
; :width {revealvar ? 250 : 100} ; :width {revealvar ? 300 : 100}
:space-evenly false :space-evenly false
(eventbox (eventbox
:onclick '${EWW_CMD} update ${revealvar-name}=${revealvar ? "false" : "true"}' :onclick '${EWW_CMD} update ${revealvar-name}=${revealvar ? "false" : "true"}'

View file

@ -4,7 +4,7 @@
:orientation "v" :orientation "v"
:space-evenly true :space-evenly true
:halign "center" :halign "center"
:width 250 :width 300
:height 75 :height 75
(box (box
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 10} :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 10}

View file

@ -7,7 +7,7 @@
:class "notes" :class "notes"
:orientation "v" :orientation "v"
:halign "baseline" :halign "baseline"
:width 250 :width 300
:height 150 :height 150
:space-evenly true :space-evenly true
(for software in json (for software in json

View file

@ -7,9 +7,9 @@
(revealer-on-press (revealer-on-press
:revealvar reveal_weather :revealvar reveal_weather
:revealvar-name "reveal_weather" :revealvar-name "reveal_weather"
:width 250 :width 300
(button (button
:width 250 :width 300
:class "revealer-title" :class "revealer-title"
"Weather ${reveal_weather ? '' : ''}") "Weather ${reveal_weather ? '' : ''}")
(weather :json weather_status))) (weather :json weather_status)))
@ -20,7 +20,7 @@
(box (box
:class "weather" :class "weather"
:orientation "v" :orientation "v"
:width 250 :width 300
:space-evenly true :space-evenly true
"${json.condition} ${json.icon}" "${json.condition} ${json.icon}"
"${json.current_temp}󰔅  / ${json.humidity}% " "${json.current_temp}󰔅  / ${json.humidity}% "

View file

@ -5,6 +5,6 @@ if [[ "$(eww active-windows)" == *"home"* ]]; then
img_list=$( find "${img_dir}" -iname '*.jpg' -or -iname '*.png' -or -iname '*.heic') img_list=$( find "${img_dir}" -iname '*.jpg' -or -iname '*.png' -or -iname '*.heic')
img=$( shuf -n 1 <<< ${img_list} ) img=$( shuf -n 1 <<< ${img_list} )
mkdir -p "${HOME}/.cache/eww/" mkdir -p "${HOME}/.cache/eww/"
convert "${img}" -resize x250\> "${HOME}/.cache/eww/rat.jpg" convert "${img}" -resize x300\> "${HOME}/.cache/eww/rat.jpg"
echo "${HOME}/.cache/eww/rat.jpg" echo "${HOME}/.cache/eww/rat.jpg"
fi fi