New backup 2026-02-17 20:30:02
This commit is contained in:
parent
24d83501ac
commit
e1cbf25a5c
4 changed files with 34 additions and 54 deletions
|
|
@ -1,7 +1,7 @@
|
|||
(defvar reveal_bluetooth false)
|
||||
|
||||
(defwidget bluetooth []
|
||||
(revealer-on-hover
|
||||
:class "${reveal_bluetooth} bluetooth"
|
||||
(revealer-on-hover :class "${reveal_bluetooth} bluetooth"
|
||||
:revealvar reveal_bluetooth
|
||||
:revealvar-name "reveal_bluetooth"
|
||||
(button :onclick 'blueman-manager'
|
||||
|
|
@ -14,7 +14,6 @@
|
|||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "start"
|
||||
|
||||
(for device in array
|
||||
(button :onclick {(device.connected == "yes") ? 'bluetoothctl disconnect "${device.address}"' : 'bluetoothctl connect "${device.address}"'}
|
||||
:class {(device.connected == "yes") ? "active" : "inactive"}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
(defwidget clock []
|
||||
(label
|
||||
:class "datetime"
|
||||
(label :class "datetime"
|
||||
:text {formattime(EWW_TIME,"%b %d, %Y | %H:%M")}))
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
(defvar inhibit_active false)
|
||||
|
||||
(defwidget idleinhibit []
|
||||
(box
|
||||
:class "idle-inhibitor ${inhibit_active ? 'active' : 'inactive'}"
|
||||
(box :class "idle-inhibitor ${inhibit_active ? 'active' : 'inactive'}"
|
||||
(button :onclick {inhibit_active ? 'killall eww-idle-inhibit;eww update inhibit_active=false' : 'systemd-inhibit --what="idle" --mode="block" scripts/bar/eww-idle-inhibit & eww update inhibit_active=true'}
|
||||
:tooltip "Idling is ${inhibit_active ? '' : 'not '}inhibited"
|
||||
{inhibit_active ? "" : ""})))
|
||||
|
|
|
|||
|
|
@ -1,18 +1,14 @@
|
|||
(defvar homewidgets_reveal false)
|
||||
|
||||
(defwidget home []
|
||||
; (box :height 27)
|
||||
(revealer
|
||||
:transition "slideright"
|
||||
(revealer :transition "slideright"
|
||||
:reveal homewidgets_reveal
|
||||
:duration "250ms"
|
||||
|
||||
(box
|
||||
:orientation 'v'
|
||||
(box :orientation 'v'
|
||||
:space-evenly false
|
||||
(box :height 27)
|
||||
(scroll
|
||||
:vscroll true
|
||||
(scroll :vscroll true
|
||||
:hscroll false
|
||||
:vexpand true
|
||||
:height 400
|
||||
|
|
@ -26,33 +22,20 @@
|
|||
(shortcuts_revealer)
|
||||
(weather_revealer)
|
||||
(mcstatus_revealer)
|
||||
; (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_revealer))
|
||||
(box
|
||||
; :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
|
||||
(reminders_revealer)
|
||||
)
|
||||
)
|
||||
)
|
||||
;(box :height 10)
|
||||
)
|
||||
)
|
||||
)
|
||||
(reminders_revealer))
|
||||
)))))
|
||||
|
||||
;widget templates
|
||||
(include "modules/home/revealer-on-press.yuck")
|
||||
|
||||
;module imports
|
||||
(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")
|
||||
(include "modules/home/mcstatus.yuck")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue