dotfiles/de/home/.config/eww/modules/home.yuck
2025-07-19 11:00:08 -07:00

34 lines
1.2 KiB
Text

(defwidget home []
(box :class "home"
:orientation "v"
:spacing 10
:width 300
:space-evenly false
(nowplayingbar)
(rat)
(shortcuts_revealer)
(weather_revealer)
; (weather :json weather_status)
; (softwareupdates :json {software_list})
(box
:visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 20) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 11)}
(software_revealer))
(box
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
(notes_revealer))
; (notes :json {jq(notes_list,'.notes')})
(box
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
(reminders_revealer))))
; (reminders :json {jq(reminders_list,'.reminders')})))
;widget templates
(include "modules/home/revealer-on-press.yuck")
(include "modules/home/nowplayingart.yuck")
(include "modules/home/rat.yuck")
(include "modules/home/weather.yuck")
(include "modules/home/shortcuts.yuck")
(include "modules/home/notes.yuck")
(include "modules/home/softwareupdates.yuck")
(include "modules/home/reminders.yuck")