New backup 2025-03-05 16:30:02

This commit is contained in:
Penelope Gwen 2025-03-05 16:30:02 -08:00
parent 83331c2450
commit 207cc20f3c
5 changed files with 29 additions and 24 deletions

View file

@ -2,34 +2,14 @@
(include "modules/bar/workspaces.yuck")
(defpoll active_profile :initial false
:interval "1s"
"sp-profile-icon")
(defwidget profile []
(button :onclick "sp-profiles next"
:class "profile"
{active_profile}))
(include "modules/bar/profile.yuck")
(deflisten active_window_name :initial ""
:interval "1s"
"scripts/activewindow")
(defwidget windowtitle []
(box :class {active_window_name != "" ? "active_window" : ""}
{active_window_name}))
(include "modules/bar/window_name.yuck")
(defwidget clock []
(button :onclick 'notify-send "test"'
{formattime(EWW_TIME,"%b %d, %Y | %H:%M")}))
(include "modules/bar/clock.yuck")
(defpoll inhibit_active :initial false
:interval "1s"
"scripts/inhibit-status")
(defwidget idleinhibit []
(button :onclick {inhibit_active ? 'killall eww-idle-inhibit' : 'systemd-inhibit --what="idle" --mode="block" scripts/eww-idle-inhibit'}
:class {inhibit_active ? "active" : ""}
{inhibit_active ? "" : ""}))
(include "modules/bar/idle_inhibit.yuck")
(defwidget revealer-on-hover [revealvar revealvar-name ?class ?duration ?transition]
(box

View file

@ -0,0 +1,3 @@
(defwidget clock []
(button :onclick 'notify-send "test"'
{formattime(EWW_TIME,"%b %d, %Y | %H:%M")}))

View file

@ -0,0 +1,9 @@
(defpoll inhibit_active :initial false
:interval "1s"
"scripts/inhibit-status")
(defwidget idleinhibit []
(button :onclick {inhibit_active ? 'killall eww-idle-inhibit' : 'systemd-inhibit --what="idle" --mode="block" script>
:class {inhibit_active ? "active" : ""}
{inhibit_active ? "" : ""}))

View file

@ -0,0 +1,7 @@
(defpoll active_profile :initial false
:interval "1s"
"sp-profile-icon")
(defwidget profile []
(button :onclick "sp-profiles next"
:class "profile"
{active_profile}))

View file

@ -0,0 +1,6 @@
(deflisten active_window_name :initial ""
:interval "1s"
"scripts/activewindow")
(defwidget windowtitle []
(box :class {active_window_name != "" ? "active_window" : ""}
{active_window_name}))