New backup 2025-07-18 18:15:02
This commit is contained in:
parent
ef35bf3464
commit
7cb56da131
11 changed files with 32 additions and 30 deletions
|
@ -303,12 +303,13 @@ $home-widget-border-hover-color: rgba($color5,0.3);
|
|||
border: 3px solid $home-widget-border-color;
|
||||
border-radius: $home-widget-border-radius;
|
||||
background-color: $home-widget-bg-color;
|
||||
.nowplayingart,
|
||||
.mediacontrols {
|
||||
margin-left: 10px;
|
||||
margin: 10px;
|
||||
// margin-left: 10px;
|
||||
}
|
||||
.nowplayingart {
|
||||
// border: 1px solid $home-widget-border-color;
|
||||
margin: 10px;
|
||||
border-radius: $home-widget-border-radius;
|
||||
}
|
||||
.mediabutton {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
(box :class "home"
|
||||
:orientation "v"
|
||||
:spacing 10
|
||||
:width 250
|
||||
:width 300
|
||||
:space-evenly false
|
||||
(nowplayingbar)
|
||||
(rat)
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
|
||||
:revealvar reveal_notes
|
||||
:revealvar-name "reveal_notes"
|
||||
:width 250
|
||||
:width 300
|
||||
(button
|
||||
:width 250
|
||||
:width 300
|
||||
:class "revealer-title"
|
||||
"Notes ${reveal_notes ? '' : ''}")
|
||||
(notes :json {jq(notes_list,'.notes')})))
|
||||
|
|
|
@ -6,17 +6,18 @@
|
|||
(box
|
||||
:class "nowplayingbar"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
:width 250
|
||||
:height 75
|
||||
:space-evenly true
|
||||
:halign "fill"
|
||||
:width 300
|
||||
:height 100
|
||||
(button
|
||||
:height 75
|
||||
:width 75
|
||||
:visible true
|
||||
:height 100
|
||||
:width 100
|
||||
:valign "center"
|
||||
:halign "start"
|
||||
:hexpand false
|
||||
:vexpand false
|
||||
:halign "center"
|
||||
; :hexpand false
|
||||
; :vexpand false
|
||||
(nowplayingart))
|
||||
; (label :width 0
|
||||
; :text "")
|
||||
|
@ -24,9 +25,9 @@
|
|||
:class "mediacontrols"
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "end"
|
||||
:width 155
|
||||
; :spacing 0
|
||||
:halign "fill"
|
||||
; :width 130
|
||||
; :spacing 20
|
||||
:height 50
|
||||
(button
|
||||
:class "mediabutton"
|
||||
|
@ -38,14 +39,14 @@
|
|||
(button
|
||||
:class "mediabutton"
|
||||
:valign "center"
|
||||
:halign "center"
|
||||
:halign "start"
|
||||
:height 25
|
||||
:width 25
|
||||
"")
|
||||
(button
|
||||
:class "mediabutton"
|
||||
:valign "center"
|
||||
:halign "end"
|
||||
:halign "start"
|
||||
:height 25
|
||||
:width 25
|
||||
""))))
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
(box
|
||||
:class "rat"
|
||||
:orientation "h"
|
||||
:width 250
|
||||
:height 250
|
||||
:width 300
|
||||
:height 300
|
||||
:style "background-image: url('${rat_image}');"))
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
:revealvar-name "reveal_reminders"
|
||||
; {reveal_reminders ? "" : ""}
|
||||
(button
|
||||
:width 250
|
||||
:width 300
|
||||
:class "revealer-title"
|
||||
"Reminders ${reveal_reminders ? '' : ''}")
|
||||
(reminders :json {jq(reminders_list,'.reminders')})))
|
||||
|
@ -21,7 +21,7 @@
|
|||
:class "reminders"
|
||||
:orientation "v"
|
||||
:halign "baseline"
|
||||
; :width 250
|
||||
; :width 300
|
||||
; :height 150
|
||||
:space-evenly true
|
||||
(for reminder in json
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
(defwidget revealer-on-press [revealvar revealvar-name ?class ?duration ?transition]
|
||||
(box
|
||||
:class "${class} revealer-on-press ${revealvar ? 'revealer_opened' : 'revealer_closed'}"
|
||||
; :width {revealvar ? 250 : 100}
|
||||
; :width {revealvar ? 300 : 100}
|
||||
:space-evenly false
|
||||
(eventbox
|
||||
:onclick '${EWW_CMD} update ${revealvar-name}=${revealvar ? "false" : "true"}'
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
:orientation "v"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
:width 250
|
||||
:width 300
|
||||
:height 75
|
||||
(box
|
||||
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 10}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
:class "notes"
|
||||
:orientation "v"
|
||||
:halign "baseline"
|
||||
:width 250
|
||||
:width 300
|
||||
:height 150
|
||||
:space-evenly true
|
||||
(for software in json
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
(revealer-on-press
|
||||
:revealvar reveal_weather
|
||||
:revealvar-name "reveal_weather"
|
||||
:width 250
|
||||
:width 300
|
||||
(button
|
||||
:width 250
|
||||
:width 300
|
||||
:class "revealer-title"
|
||||
"Weather ${reveal_weather ? '' : ''}")
|
||||
(weather :json weather_status)))
|
||||
|
@ -20,7 +20,7 @@
|
|||
(box
|
||||
:class "weather"
|
||||
:orientation "v"
|
||||
:width 250
|
||||
:width 300
|
||||
:space-evenly true
|
||||
"${json.condition} ${json.icon}"
|
||||
"${json.current_temp} / ${json.humidity}% "
|
||||
|
|
|
@ -5,6 +5,6 @@ if [[ "$(eww active-windows)" == *"home"* ]]; then
|
|||
img_list=$( find "${img_dir}" -iname '*.jpg' -or -iname '*.png' -or -iname '*.heic')
|
||||
img=$( shuf -n 1 <<< ${img_list} )
|
||||
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"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue