New backup 2025-03-12 18:00:02

This commit is contained in:
Penelope Gwen 2025-03-12 18:00:02 -07:00
parent 30af5ce94e
commit 0a1d5f07c3
8 changed files with 11 additions and 16 deletions

View file

@ -4,14 +4,9 @@
:revealvar reveal_battery
:revealvar-name "reveal_battery"
(button :onclick 'notify-send battery lol'
; {jq(EWW_BATTERY,'.[].status?')})
; "${jq(EWW_BATTERY,'.total_avg')}")
{(EWW_BATTERY == "") ? "" : `${(jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " ${jq(EWW_BATTERY,'.[].capacity?')}%" : " ${jq(EWW_BATTERY,'.[].capacity?')}%"}`})
(battery_children)))
;(defpoll battery_level :initial 0
; :interval "1s"
; "scripts/bar/battery-status")
(defwidget battery_children []
(box :class "reveal_children"
:orientation "h"

View file

@ -1,6 +1,6 @@
(defvar reveal_bluetooth false)
(defpoll bluetooth_active :initial true
:interval "5s"
:interval "60s"
'scripts/bar/bt-status')
(defwidget bluetooth []
(revealer-on-hover
@ -12,7 +12,7 @@
(bluetooth_children :array btDeviceArray)))
(defpoll btDeviceArray :initial "${[{ "name": "dummy", "connected": "no", "icon": " ", "address": "00:00:00:00:00:00" }]}"
:interval "5s"
:interval "60s"
'scripts/bar/bt-devices')
(defwidget bluetooth_children [array]
(box :class "reveal_children"

View file

@ -1,5 +1,5 @@
(defpoll inhibit_active :initial false
:interval "1s"
:interval "60s"
"scripts/bar/inhibit-status")
(defwidget idleinhibit []

View file

@ -1,8 +1,8 @@
(defpoll wireless_active :initial false
:interval "1s"
:interval "60s"
"scripts/bar/network-status wireless")
(defpoll wired_active :initial false
:interval "1s"
:interval "60s"
"scripts/bar/network-status ethernet")
(defvar reveal_network false)
(defwidget network []

View file

@ -1,5 +1,5 @@
(defpoll active_profile :initial false
:interval "1s"
:interval "60s"
"sp-profile-icon")
(defwidget profile []
(button :onclick "sp-profiles next"

View file

@ -8,7 +8,7 @@
(volume_children)))
(defpoll volume :initial 0
:interval "1s"
:interval "60s"
"scripts/bar/volume-status")
(defwidget volume_children []
(box :class "reveal_children"

View file

@ -1,5 +1,5 @@
(defpoll vpn_active :initial false
:interval "5s"
:interval "60s"
"scripts/bar/vpn-status")
(defvar reveal_vpn false)
@ -13,11 +13,11 @@
(vpn_children)))
(defpoll home_vpn_active :initial false
:interval "5s"
:interval "60s"
"scripts/bar/vpn-status Home")
(defpoll proton_vpn_active :initial false
:interval "5s"
:interval "60s"
"scripts/bar/vpn-status Proton")
(defwidget vpn_children []

View file

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