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,22 +1,21 @@
|
||||||
(defvar reveal_bluetooth false)
|
(defvar reveal_bluetooth false)
|
||||||
|
|
||||||
(defwidget bluetooth []
|
(defwidget bluetooth []
|
||||||
(revealer-on-hover
|
(revealer-on-hover :class "${reveal_bluetooth} bluetooth"
|
||||||
:class "${reveal_bluetooth} bluetooth"
|
:revealvar reveal_bluetooth
|
||||||
:revealvar reveal_bluetooth
|
:revealvar-name "reveal_bluetooth"
|
||||||
:revealvar-name "reveal_bluetooth"
|
|
||||||
(button :onclick 'blueman-manager'
|
(button :onclick 'blueman-manager'
|
||||||
:class "revealer-preview ${matches(jq(bluetooth_status,'.[].connected'),'yes') ? 'active' : 'inactive'}"
|
:class "revealer-preview ${matches(jq(bluetooth_status,'.[].connected'),'yes') ? 'active' : 'inactive'}"
|
||||||
"")
|
"")
|
||||||
(bluetooth_children :array bluetooth_status)))
|
(bluetooth_children :array bluetooth_status)))
|
||||||
|
|
||||||
(defwidget bluetooth_children [array]
|
(defwidget bluetooth_children [array]
|
||||||
(box :class "reveal-children"
|
(box :class "reveal-children"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:space-evenly true
|
:space-evenly true
|
||||||
:halign "start"
|
:halign "start"
|
||||||
|
(for device in array
|
||||||
(for device in array
|
(button :onclick {(device.connected == "yes") ? 'bluetoothctl disconnect "${device.address}"' : 'bluetoothctl connect "${device.address}"'}
|
||||||
(button :onclick {(device.connected == "yes") ? 'bluetoothctl disconnect "${device.address}"' : 'bluetoothctl connect "${device.address}"'}
|
:class {(device.connected == "yes") ? "active" : "inactive"}
|
||||||
:class {(device.connected == "yes") ? "active" : "inactive"}
|
:tooltip "${device.name}"
|
||||||
:tooltip "${device.name}"
|
"${device.icon}"))))
|
||||||
"${device.icon}"))))
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
(defwidget clock []
|
(defwidget clock []
|
||||||
(label
|
(label :class "datetime"
|
||||||
:class "datetime"
|
:text {formattime(EWW_TIME,"%b %d, %Y | %H:%M")}))
|
||||||
:text {formattime(EWW_TIME,"%b %d, %Y | %H:%M")}))
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
(defvar inhibit_active false)
|
(defvar inhibit_active false)
|
||||||
|
|
||||||
(defwidget idleinhibit []
|
(defwidget idleinhibit []
|
||||||
(box
|
(box :class "idle-inhibitor ${inhibit_active ? 'active' : 'inactive'}"
|
||||||
: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'}
|
(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"
|
:tooltip "Idling is ${inhibit_active ? '' : 'not '}inhibited"
|
||||||
{inhibit_active ? "" : ""})))
|
{inhibit_active ? "" : ""})))
|
||||||
|
|
|
||||||
|
|
@ -1,58 +1,41 @@
|
||||||
(defvar homewidgets_reveal false)
|
(defvar homewidgets_reveal false)
|
||||||
|
|
||||||
(defwidget home []
|
(defwidget home []
|
||||||
; (box :height 27)
|
(revealer :transition "slideright"
|
||||||
(revealer
|
:reveal homewidgets_reveal
|
||||||
:transition "slideright"
|
:duration "250ms"
|
||||||
:reveal homewidgets_reveal
|
|
||||||
:duration "250ms"
|
|
||||||
|
|
||||||
(box
|
(box :orientation 'v'
|
||||||
:orientation 'v'
|
|
||||||
:space-evenly false
|
|
||||||
(box :height 27)
|
|
||||||
(scroll
|
|
||||||
:vscroll true
|
|
||||||
:hscroll false
|
|
||||||
:vexpand true
|
|
||||||
:height 400
|
|
||||||
(box :class "home"
|
|
||||||
:orientation "v"
|
|
||||||
:spacing 10
|
|
||||||
:width 300
|
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
|
(box :height 27)
|
||||||
|
(scroll :vscroll true
|
||||||
|
:hscroll false
|
||||||
|
:vexpand true
|
||||||
|
:height 400
|
||||||
|
(box :class "home"
|
||||||
|
:orientation "v"
|
||||||
|
:spacing 10
|
||||||
|
:width 300
|
||||||
|
:space-evenly false
|
||||||
(nowplayingbar)
|
(nowplayingbar)
|
||||||
(rat)
|
(rat)
|
||||||
(shortcuts_revealer)
|
(shortcuts_revealer)
|
||||||
(weather_revealer)
|
(weather_revealer)
|
||||||
(mcstatus_revealer)
|
(mcstatus_revealer)
|
||||||
; (box
|
|
||||||
; :visible {(jq(workspacesArray, '.[]\|select(.focused==true).num') <= 20) && (jq(workspacesArray, '.[]\|select(.focused==true).num') >= 11)}
|
|
||||||
; (software_revealer)
|
|
||||||
; )
|
|
||||||
(box
|
(box
|
||||||
; :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
|
(notes_revealer))
|
||||||
(notes_revealer)
|
|
||||||
)
|
|
||||||
(box
|
(box
|
||||||
; :visible {jq(workspacesArray, '.[]\|select(.focused==true).num') <= 9}
|
(reminders_revealer))
|
||||||
(reminders_revealer)
|
)))))
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
;(box :height 10)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
;widget templates
|
;widget templates
|
||||||
(include "modules/home/revealer-on-press.yuck")
|
(include "modules/home/revealer-on-press.yuck")
|
||||||
|
|
||||||
|
;module imports
|
||||||
(include "modules/home/nowplayingart.yuck")
|
(include "modules/home/nowplayingart.yuck")
|
||||||
(include "modules/home/rat.yuck")
|
(include "modules/home/rat.yuck")
|
||||||
(include "modules/home/weather.yuck")
|
(include "modules/home/weather.yuck")
|
||||||
(include "modules/home/shortcuts.yuck")
|
(include "modules/home/shortcuts.yuck")
|
||||||
(include "modules/home/notes.yuck")
|
(include "modules/home/notes.yuck")
|
||||||
;(include "modules/home/softwareupdates.yuck")
|
|
||||||
(include "modules/home/reminders.yuck")
|
(include "modules/home/reminders.yuck")
|
||||||
(include "modules/home/mcstatus.yuck")
|
(include "modules/home/mcstatus.yuck")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue