diff options
Diffstat (limited to 'share/home/eww/config/eww.yuck')
| -rw-r--r-- | share/home/eww/config/eww.yuck | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/share/home/eww/config/eww.yuck b/share/home/eww/config/eww.yuck deleted file mode 100644 index 6b5b719..0000000 --- a/share/home/eww/config/eww.yuck +++ /dev/null @@ -1,89 +0,0 @@ -(defwidget bar [] - (centerbox :orientation "v" - :class "bar" - (workspaces) - ;; TODO - add a command runner button here - "" - (sidestuff))) - -(defwidget workspace-btn [n ?icon] - (button :onclick "hyprctl dispatch 'workspace ${n}'" - :halign "baseline" - :hexpand true - "${icon ?: n}")) - -;; TODO - add indicator that signifies that there is at least one window open on -;; the workspace -(defwidget workspaces [] - (box :class "workspaces" - :orientation "v" - :space-evenly true - :valign "start" - :halign "center" - (workspace-btn :n 1 :icon "") - (workspace-btn :n 2 :icon "") - (workspace-btn :n 3 :icon "") - (workspace-btn :n 4 :icon "") - (workspace-btn :n 5 :icon "") - (workspace-btn :n 6 :icon "") - (workspace-btn :n 7 :icon "") - (workspace-btn :n 8 :icon "") - (workspace-btn :n 9 :icon ""))) - - -(defwidget sidestuff [] - (box :class "sidestuff" - :orientation "v" - :space-evenly false - :spacing 10 - :valign "end" - ;(netstats :device "wlp2s0") - (battery :device "BAT0") - (clock))) - -(defwidget metric [icon ?font-size] - (box :class "metric card" - :orientation "v" - (label :class "metric-icon" - :style {font-size != "" ? "font-size: ${font-size}rem;" : ""} - :text icon) - (children))) - -;; TODO - Add down speed and format them into human-readable values -(defwidget netstats [device] - (box :class "netstats" - :orientation "v" - :space-evenly false - :valign "end" - :halign "center" - device - "up" - {EWW_NET[device].NET_UP})) - -;; TODO - make the icon change based on the percentage left -(defwidget battery [device] - (metric :icon "" - :font-size 1.5 - "${EWW_BATTERY[device].capacity}%")) - -(defwidget clock [] - (box :class "card" - :orientation "v" - :valign "end" - :spacing -2 - {formattime(EWW_TIME, "%R")} - {formattime(EWW_TIME, "%a")} - {formattime(EWW_TIME, "%-d.")} - {formattime(EWW_TIME, "%b")} - {formattime(EWW_TIME, "%Y")})) - -(defwindow bar - :monitor 0 - :geometry (geometry :width "1.5%" - :height "98%" - :anchor "right center") - :stacking "fg" - :windowtype "dock" - :exclusive true - (bar)) - |
