New backup 2026-02-17 20:15:01

This commit is contained in:
Penelope Gwen 2026-02-17 20:15:01 -08:00
parent dd992f5518
commit 24d83501ac
2 changed files with 30 additions and 54 deletions

View file

@ -8,53 +8,31 @@
(include "modules/bar/revealer-on-hover.yuck")
(include "modules/bar/metric.yuck")
;widget scripts
;(deflisten active_profile_name "scripts/bar/profile-name")
;centerbar groups
(defwidget leftgroup []
(box :class "leftgroup ${((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Work') ? 'profile-work' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'School') ? 'profile-school' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Development') ? 'profile-development' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Penelope') ? 'profile-personal' : ''))))}"
:orientation "h"
:space-evenly false
:halign "start"
(box :class "leftgroup ${((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Work') ? 'profile-work' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'School') ? 'profile-school' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Development') ? 'profile-development' : ((jq(sway_info,'workspace_info[] | select(.is_focused) | .profile_name','r') == 'Penelope') ? 'profile-personal' : ''))))}"
:orientation "h"
:space-evenly false
:halign "start"
(powermenu)
(profile)
(workspaces :array {jq(sway_info,'.workspace_info','r')})
(scratchpad)
(windowtitle)))
;(deflisten scratchpadArray :initial "${[1]}"
; 'scripts/bar/scratchpad')
;(defwidget scratchpad [array]
; (box :orientation "v"
; :space-evenly false
; :class "workspaces"
; (box :space-evenly false
; (for entry in array
; (button :onclick 'swaymsg [con_id=${entry.win_id}] focus'
; :tooltip "${entry.name}
;${entry.title}"
; (image :path {entry.icon}
; :image-width 25
; :image-height 25)
; )))))
; (image :path "/usr/share/icons/hicolor/scalable/apps/org.kde.dolphin.svg"
; :image-width 25
; :image-height 25)
; (image :path "/usr/share/icons/hicolor/32x32/apps/librewolf.png"
; :image-width 25
; :image-height 25
; )))
(defwidget centergroup []
; (box :visible {nowplaying != ""}
(box :visible false
:class "centergroup" :orientation "h" :space-evenly false :halign "start"))
; (music)))
(box :visible false
:class "centergroup"
:orientation "h"
:space-evenly false
:halign "start"))
(defwidget rightgroup []
(box :class "rightgroup" :orientation "h" :space-evenly false :halign "end"
(box :class "rightgroup"
:orientation "h"
:space-evenly false
:halign "end"
(idleinhibit)
(volume)
(network)
@ -70,7 +48,7 @@
(include "variables/bar/profile-info.yuck")
(include "variables/bar/sway-info.yuck")
;leftgroup
;leftgroup imports
(include "modules/bar/powermenu.yuck")
(include "modules/bar/profile.yuck")
(include "modules/bar/workspaces.yuck")
@ -84,7 +62,6 @@
;rightgroup
(include "modules/bar/idle_inhibit.yuck")
(include "modules/bar/volume.yuck")
;(include "variables/bar/network.yuck")
(include "variables/bar/network-manager.yuck")
(include "modules/bar/network.yuck")
(include "modules/bar/vpn.yuck")

View file

@ -1,22 +1,21 @@
(defvar reveal_battery false)
(defwidget battery []
(revealer-on-hover
:class "${reveal_battery} battery"
:revealvar reveal_battery
:revealvar-name "reveal_battery"
(label
:class "revealer-preview ${(EWW_BATTERY == '' || jq(EWW_BATTERY,'.[].status?','r') == 'Charging') ? 'active' : '' }"
:tooltip `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? "Charging" : "Discharging"}, ${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'.total_avg?'),1)}% of total average"}`
:text `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " " : "󰁹 "}${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'first(.[].capacity?)'),0)}%"}`)
(revealer-on-hover :class "${reveal_battery} battery"
:revealvar reveal_battery
:revealvar-name "reveal_battery"
(label :class "revealer-preview ${(EWW_BATTERY == '' || jq(EWW_BATTERY,'.[].status?','r') == 'Charging') ? 'active' : '' }"
:tooltip `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? "Charging" : "Discharging"}, ${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'.total_avg?'),1)}% of total average"}`
:text `${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " " : "󰁹 "}${(EWW_BATTERY == "") ? "" : "${round(jq(EWW_BATTERY,'first(.[].capacity?)'),0)}%"}`)
(battery_children)))
(defwidget battery_children []
(box :class "reveal-children"
:orientation "h"
:space-evenly false
:halign "center"
(box :class "reveal-children"
:orientation "h"
:space-evenly false
:halign "center"
(box
(progress
:height 10
:valign "center"
:value {(EWW_BATTERY == "") ? 100 : jq(EWW_BATTERY,'first(.[].capacity?)')}
:orientation "h"))))
(progress :height 10
:valign "center"
:value {(EWW_BATTERY == "") ? 100 : jq(EWW_BATTERY,'first(.[].capacity?)')}
:orientation "h"))))