diff options
Diffstat (limited to 'share')
| -rw-r--r-- | share/home/eww/config/eww.scss | 2 | ||||
| -rw-r--r-- | share/home/eww/config/eww.yuck | 39 | ||||
| -rw-r--r-- | share/home/hyprland.nix | 4 |
3 files changed, 27 insertions, 18 deletions
diff --git a/share/home/eww/config/eww.scss b/share/home/eww/config/eww.scss index 418f725..44d6acf 100644 --- a/share/home/eww/config/eww.scss +++ b/share/home/eww/config/eww.scss @@ -14,7 +14,7 @@ .card { - background-color: #1d2021; +// background-color: #1d2021; margin: 1px; padding: 5px 2px; } diff --git a/share/home/eww/config/eww.yuck b/share/home/eww/config/eww.yuck index 4cb9bc9..1e1a812 100644 --- a/share/home/eww/config/eww.yuck +++ b/share/home/eww/config/eww.yuck @@ -2,7 +2,8 @@ (centerbox :orientation "v" :class "bar" (workspaces) - "t1" + ;; TODO - add a rofi button here + "" (sidestuff))) (defwidget workspace-btn [n ?icon] @@ -11,21 +12,23 @@ :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 ""))) + (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 [] @@ -34,7 +37,7 @@ :space-evenly false :spacing 10 :valign "end" - (netstats :device "wlp2s0") + ;(netstats :device "wlp2s0") (battery :device "BAT0") (clock))) @@ -46,6 +49,7 @@ :text icon) (children))) +;; TODO - Add down speed and format them into human-readable values (defwidget netstats [device] (box :class "netstats" :orientation "v" @@ -56,19 +60,22 @@ "up" {EWW_NET[device].NET_UP})) +;; TODO - make the icon change based on the percentage left (defwidget battery [device] - (metric :icon "bat" + (metric :icon "" + :font-size 1.5 "${EWW_BATTERY[device].capacity}%")) (defwidget clock [] (box :class "card" :orientation "v" :valign "end" - :spacing -3 + :spacing -2 + {formattime(EWW_TIME, "%R")} {formattime(EWW_TIME, "%a")} - {formattime(EWW_TIME, "%-d")} - {formattime(EWW_TIME, "%-m")} - {formattime(EWW_TIME, "%-y")})) + {formattime(EWW_TIME, "%-d.")} + {formattime(EWW_TIME, "%b")} + {formattime(EWW_TIME, "%Y")})) (defwindow bar :monitor 0 diff --git a/share/home/hyprland.nix b/share/home/hyprland.nix index e272b9a..2cf19b0 100644 --- a/share/home/hyprland.nix +++ b/share/home/hyprland.nix @@ -1,6 +1,6 @@ # IMPORTANT: this module requires the system to already have `programs.hyprland` # enabled. You can enable it by importing `share/system/hyprland.nix` -{ pkgs, ... }: { +{ pkgs, config, ... }: { imports = [ # Custom home manager modules ../hm-modules/wpaperd.nix @@ -70,6 +70,8 @@ # set opacity to 0.9 active and 0.5 inactive for kitty windowrule = opacity 0.9 override 0.5 override,^(kitty)$ + + exec-once = eww --config ${config.programs.eww.configDir} open bar ''; }; |
