(defwidget home [] (box :orientation 'v' :space-evenly false (box :height 40) (scroll :vscroll true :hscroll false :vexpand true :height 400 (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")