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" :windowtype "normal"
:exclusive true :exclusive true
:geometry (geometry :geometry (geometry
; :x "10px"
:y "30px" :y "30px"
:width "300px" ; :width "300px"
; :height "200px"
:height "100%" :height "100%"
:anchor "center left") :anchor "center left")
:stacking "bottom" :stacking "bottom"
; :reserve (struts :side "top" :distance "300px")
(home)) (home))

View file

@ -1,4 +1,11 @@
(defvar homewidgets_reveal true)
(defwidget home [] (defwidget home []
(revealer
:transition "slideright"
:reveal homewidgets_reveal
:duration "500ms"
(box (box
:orientation 'v' :orientation 'v'
:space-evenly false :space-evenly false
@ -17,19 +24,15 @@
(rat) (rat)
(shortcuts_revealer) (shortcuts_revealer)
(weather_revealer) (weather_revealer)
; (weather :json weather_status)
; (softwareupdates :json {software_list})
(box (box
:visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 20) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 11)} :visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 20) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 11)}
(software_revealer)) (software_revealer))
(box (box
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9} :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
(notes_revealer)) (notes_revealer))
; (notes :json {jq(notes_list,'.notes')})
(box (box
:visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9} :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
(reminders_revealer))))) ) (reminders_revealer))))) ) )
; (reminders :json {jq(reminders_list,'.reminders')})))
;widget templates ;widget templates
(include "modules/home/revealer-on-press.yuck") (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