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)
|
(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'
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
: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"}
|
||||||
|
|
|
||||||
|
|
@ -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,18 +1,14 @@
|
||||||
(defvar homewidgets_reveal false)
|
(defvar homewidgets_reveal false)
|
||||||
|
|
||||||
(defwidget home []
|
(defwidget home []
|
||||||
; (box :height 27)
|
(revealer :transition "slideright"
|
||||||
(revealer
|
|
||||||
:transition "slideright"
|
|
||||||
:reveal homewidgets_reveal
|
:reveal homewidgets_reveal
|
||||||
:duration "250ms"
|
:duration "250ms"
|
||||||
|
|
||||||
(box
|
(box :orientation 'v'
|
||||||
:orientation 'v'
|
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(box :height 27)
|
(box :height 27)
|
||||||
(scroll
|
(scroll :vscroll true
|
||||||
:vscroll true
|
|
||||||
:hscroll false
|
:hscroll false
|
||||||
:vexpand true
|
:vexpand true
|
||||||
:height 400
|
:height 400
|
||||||
|
|
@ -26,33 +22,20 @@
|
||||||
(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