New backup 2025-03-05 14:30:03
This commit is contained in:
parent
b4b3ed4308
commit
c821d6f844
4 changed files with 46 additions and 40 deletions
|
@ -1,32 +1,9 @@
|
||||||
(defwidget bar []
|
(deflisten workspacesArray :initial "${[1]}"
|
||||||
(centerbox :orientation "h"
|
`~/.config/eww/scripts/getWorkspaces.sh`)
|
||||||
(leftgroup)
|
|
||||||
(centergroup)
|
|
||||||
(rightgroup)))
|
|
||||||
|
|
||||||
(defwidget leftgroup []
|
(include "modules/bar.yuck")
|
||||||
(box :class "leftgroup" :orientation "h" :space-evenly false :halign "start"
|
|
||||||
(powermenu)
|
|
||||||
(profile)
|
|
||||||
(workspaces :array workspacesArray)
|
|
||||||
(windowtitle)))
|
|
||||||
|
|
||||||
(defwidget centergroup []
|
(include "modules/bar/workspaces.yuck")
|
||||||
(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)))
|
|
||||||
|
|
||||||
(deflisten workspacesArray :initial "${[1]}"
|
(deflisten workspacesArray :initial "${[1]}"
|
||||||
`~/.config/eww/scripts/getWorkspaces.sh`)
|
`~/.config/eww/scripts/getWorkspaces.sh`)
|
||||||
|
@ -340,16 +317,7 @@
|
||||||
(defpoll time :interval "10s"
|
(defpoll time :interval "10s"
|
||||||
"date '+%H:%M %b %d, %Y'")
|
"date '+%H:%M %b %d, %Y'")
|
||||||
|
|
||||||
(defwindow bar
|
(include "modules/bar.yuck")
|
||||||
:windowtype "dock"
|
|
||||||
:exclusive true
|
|
||||||
:geometry (geometry :x "0%"
|
|
||||||
:y "0%"
|
|
||||||
:width "100%"
|
|
||||||
:height "30px"
|
|
||||||
:anchor "top center")
|
|
||||||
:reserve (struts :side "top" :distance "4%")
|
|
||||||
(bar))
|
|
||||||
|
|
||||||
(defwidget widgets []
|
(defwidget widgets []
|
||||||
(box :class "widgets"
|
(box :class "widgets"
|
||||||
|
@ -380,7 +348,6 @@
|
||||||
:width 300
|
:width 300
|
||||||
:height 125
|
:height 125
|
||||||
:space-evenly true
|
:space-evenly true
|
||||||
; :spacing 20
|
|
||||||
"Eugene, OR | ${json.current_condition[0].weatherDesc[0].value}"
|
"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.current_condition[0].temp_F}°F (feels like ${json.current_condition[0].FeelsLikeF}°F)"
|
||||||
"${json.weather[0].mintempF}°F / ${json.weather[0].maxtempF}°F"
|
"${json.weather[0].mintempF}°F / ${json.weather[0].maxtempF}°F"
|
||||||
|
|
29
de/home/.config/eww/modules/bar.yuck
Normal file
29
de/home/.config/eww/modules/bar.yuck
Normal 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)))
|
10
de/home/.config/eww/modules/bar/workspaces.yuck
Normal file
10
de/home/.config/eww/modules/bar/workspaces.yuck
Normal 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,".*:","")}'))))
|
|
@ -5,8 +5,8 @@ output eDP-1 {
|
||||||
position 0 0
|
position 0 0
|
||||||
# bg $HOME/.config/sway/assets/wallpaper/eDP-1/_default.jpg fill
|
# 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 show --screen "0x0A31" bar
|
||||||
exec_always sleep 1;eww open --screen "0x0A31" widgets
|
exec_always sleep 1;eww show --screen "0x0A31" widgets
|
||||||
|
|
||||||
output DP-7 {
|
output DP-7 {
|
||||||
scale 1
|
scale 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue