New backup 2025-03-05 16:30:02
This commit is contained in:
parent
83331c2450
commit
207cc20f3c
5 changed files with 29 additions and 24 deletions
|
@ -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
|
||||
|
|
3
de/home/.config/eww/modules/bar/clock.yuck
Normal file
3
de/home/.config/eww/modules/bar/clock.yuck
Normal file
|
@ -0,0 +1,3 @@
|
|||
(defwidget clock []
|
||||
(button :onclick 'notify-send "test"'
|
||||
{formattime(EWW_TIME,"%b %d, %Y | %H:%M")}))
|
9
de/home/.config/eww/modules/bar/idle_inhibit.yuck
Normal file
9
de/home/.config/eww/modules/bar/idle_inhibit.yuck
Normal 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 ? "" : ""}))
|
||||
|
7
de/home/.config/eww/modules/bar/profile.yuck
Normal file
7
de/home/.config/eww/modules/bar/profile.yuck
Normal 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}))
|
6
de/home/.config/eww/modules/bar/window_name.yuck
Normal file
6
de/home/.config/eww/modules/bar/window_name.yuck
Normal 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}))
|
Loading…
Add table
Reference in a new issue