diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-03-15 07:52:32 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-03-15 07:52:32 +0100 |
| commit | 97555be8b119392bdb5bce0ee052ffc52b48db1c (patch) | |
| tree | c7cc94a4b9642795d15ac28b924dbc46740556c6 /share/home/eww/config | |
| parent | 65505d8fe23ad02b8da3e3c595247282cf389294 (diff) | |
WIP hyprdesktop module, waybar
Diffstat (limited to 'share/home/eww/config')
| -rw-r--r-- | share/home/eww/config/eww.scss | 20 | ||||
| -rw-r--r-- | share/home/eww/config/eww.yuck | 89 |
2 files changed, 0 insertions, 109 deletions
diff --git a/share/home/eww/config/eww.scss b/share/home/eww/config/eww.scss deleted file mode 100644 index 44d6acf..0000000 --- a/share/home/eww/config/eww.scss +++ /dev/null @@ -1,20 +0,0 @@ -* { - all: unset; // Unsets everything so you can style everything from scratch -} - -.bar { - background-color: #3a3a3a; - color: #fff; - padding: 1rem .25rem; -} - -.workspaces { - font-size: 2em; -} - - -.card { -// background-color: #1d2021; - margin: 1px; - padding: 5px 2px; -} 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)) - |
