New backup 2025-09-02 14:45:02

This commit is contained in:
Penelope Gwen 2025-09-02 14:45:02 -07:00
parent e43196e481
commit 490432af22
3 changed files with 21 additions and 9 deletions

View file

@ -21,12 +21,9 @@
:windowtype "normal"
:exclusive true
:geometry (geometry
; :x "10px"
:y "30px"
:width "300px"
; :height "200px"
; :width "300px"
:height "100%"
:anchor "center left")
:stacking "bottom"
; :reserve (struts :side "top" :distance "300px")
(home))

View file

@ -1,4 +1,11 @@
(defvar homewidgets_reveal true)
(defwidget home []
(revealer
:transition "slideright"
:reveal homewidgets_reveal
:duration "500ms"
(box
:orientation 'v'
:space-evenly false
@ -17,19 +24,15 @@
(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')})))
(reminders_revealer))))) ) )
;widget templates
(include "modules/home/revealer-on-press.yuck")

View file

@ -0,0 +1,12 @@
#!/bin/bash
if [[ -z ${1} ]];then
printf 'no variable provided\n'
exit 1
fi
if [[ "$(eww get ${1})" -eq "true" ]];then
var_state="false"
else
var_state="true"
fi