From d17525d97ba7fea0127bf2dc63cbf002aa2e375b Mon Sep 17 00:00:00 2001 From: Alexis Jhon Gaspar Date: Wed, 27 Sep 2023 20:15:21 +0800 Subject: [PATCH] Change eww config --- config/eww/eww.scss | 6 +++--- config/eww/eww.yuck | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/config/eww/eww.scss b/config/eww/eww.scss index 63b85e3..2d74383 100644 --- a/config/eww/eww.scss +++ b/config/eww/eww.scss @@ -49,7 +49,7 @@ color: $color0; background-color: $color6; padding: 1rem; - padding-right: 7em; + padding-right: 1em; } .weather-icon-text { color: $color0; @@ -67,13 +67,13 @@ } .ram-radial-label { font-size: 2em; - padding: 3rem; + padding: 3.3rem; margin-left: 0.25rem; margin-right: 0.75rem; } .cpu-radial-label { font-size: 2em; - padding: 3rem; + padding: 3.3rem; margin-right: 0.75rem; } diff --git a/config/eww/eww.yuck b/config/eww/eww.yuck index da9b77e..1a64ccc 100644 --- a/config/eww/eww.yuck +++ b/config/eww/eww.yuck @@ -15,16 +15,17 @@ (defpoll weather-icon :interval "1s" "curl -s wttr.in/?format='%c'") (defpoll weather-location :interval "1s" "curl -s wttr.in/?format='%l'") (defpoll weather-temp :interval "1s" "curl -s wttr.in/?format='%t'") +(defpoll weather-feeltemp :interval "1s" "printf 'Feels like ' && curl -s wttr.in/?format='%f'") ; (defvar weather-temp "+34°C") -; (defvar weather-location "Test") +; (defvar weather-location "Gapan, NE") ; (defvar weather-icon "☁") (defvar notification "Notifications") (defpoll notification-history :interval "1s" "printf 'In history: ' && dunstctl count history") (defpoll notification-display :interval "1s" "printf 'Currently Displayed: ' && dunstctl count displayed") -(defpoll notification-summary :interval "1s" "printf 'Last notification:\\n' && dunstctl history | jq '.data[] | .[] | .summary | .data' | head -n 1 | sed 's/\"//g' | fold -w 25") +(defpoll notification-summary :interval "1s" "printf 'Last notification:\\n' && dunstctl history | jq '.data[] | .[] | .summary | .data' | head -n 1 | sed 's/\"//g' | fold -sw 25") -(defpoll quoter-text :interval "10s" "quoter | fold -w 30") +(defpoll quoter-text :interval "10s" "quoter | fold -sw 30") (defwidget datetime [] (box :class "date-box" :space-evenly "false" :orientation "v" @@ -78,6 +79,7 @@ (box :class "weather-forecast" :space-evenly "false" :orientation "v" (label :class "weather-location" :text weather-location :xalign 0) (label :class "weather-temp" :text weather-temp :xalign 0) + (label :class "weather-location" :text weather-feeltemp :xalign 0) ) ) )