New backup 2025-03-05 14:30:03

This commit is contained in:
Penelope Gwen 2025-03-05 14:30:03 -08:00
parent b4b3ed4308
commit c821d6f844
4 changed files with 46 additions and 40 deletions

View file

@ -1,32 +1,9 @@
(defwidget bar []
(centerbox :orientation "h"
(leftgroup)
(centergroup)
(rightgroup)))
(deflisten workspacesArray :initial "${[1]}"
`~/.config/eww/scripts/getWorkspaces.sh`)
(defwidget leftgroup []
(box :class "leftgroup" :orientation "h" :space-evenly false :halign "start"
(powermenu)
(profile)
(workspaces :array workspacesArray)
(windowtitle)))
(include "modules/bar.yuck")
(defwidget centergroup []
(box :class "centergroup" :orientation "h" :space-evenly false :halign "start"
(music)))
(defwidget rightgroup []
(box :class "rightgroup" :orientation "h" :space-evenly false :halign "end"
(idleinhibit)
(volume)
(network)
(vpn)
(bluetooth)
(battery)
(sysdisk)
(sysmem)
(clock)
(tray)))
(include "modules/bar/workspaces.yuck")
(deflisten workspacesArray :initial "${[1]}"
`~/.config/eww/scripts/getWorkspaces.sh`)
@ -340,16 +317,7 @@
(defpoll time :interval "10s"
"date '+%H:%M %b %d, %Y'")
(defwindow bar
:windowtype "dock"
:exclusive true
:geometry (geometry :x "0%"
:y "0%"
:width "100%"
:height "30px"
:anchor "top center")
:reserve (struts :side "top" :distance "4%")
(bar))
(include "modules/bar.yuck")
(defwidget widgets []
(box :class "widgets"
@ -380,7 +348,6 @@
:width 300
:height 125
:space-evenly true
; :spacing 20
"Eugene, OR | ${json.current_condition[0].weatherDesc[0].value}"
"${json.current_condition[0].temp_F}°F (feels like ${json.current_condition[0].FeelsLikeF}°F)"
"${json.weather[0].mintempF}°F / ${json.weather[0].maxtempF}°F"

View file

@ -0,0 +1,29 @@
(defwidget bar []
(centerbox :orientation "h"
(leftgroup)
(centergroup)
(rightgroup)))
(defwidget leftgroup []
(box :class "leftgroup" :orientation "h" :space-evenly false :halign "start"
(powermenu)
(profile)
(workspaces :array workspacesArray)
(windowtitle)))
(defwidget centergroup []
(box :class "centergroup" :orientation "h" :space-evenly false :halign "start"
(music)))
(defwidget rightgroup []
(box :class "rightgroup" :orientation "h" :space-evenly false :halign "end"
(idleinhibit)
(volume)
(network)
(vpn)
(bluetooth)
(battery)
(sysdisk)
(sysmem)
(clock)
(tray)))

View file

@ -0,0 +1,10 @@
(defwidget workspaces [array]
(box :class "workspaces"
:orientation "h"
:space-evenly true
:halign "start"
(for entry in array
(button :onclick `swaymsg workspace "${entry.name}"`
:class {entry.focused ? "focused" : ""}
'${replace(entry.name,".*:","")}'))))

View file

@ -5,8 +5,8 @@ output eDP-1 {
position 0 0
# bg $HOME/.config/sway/assets/wallpaper/eDP-1/_default.jpg fill
}
exec_always sleep 1;eww open --screen "0x0A31" bar
exec_always sleep 1;eww open --screen "0x0A31" widgets
exec_always sleep 1;eww show --screen "0x0A31" bar
exec_always sleep 1;eww show --screen "0x0A31" widgets
output DP-7 {
scale 1