aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home/rices/finals/eww.nix6
-rw-r--r--home/rices/finals/eww/configDir/eww.css18
-rw-r--r--home/rices/finals/eww/configDir/eww.yuck24
-rw-r--r--home/rices/finals/home.nix1
4 files changed, 49 insertions, 0 deletions
diff --git a/home/rices/finals/eww.nix b/home/rices/finals/eww.nix
new file mode 100644
index 0000000..599738a
--- /dev/null
+++ b/home/rices/finals/eww.nix
@@ -0,0 +1,6 @@
+{...}: {
+ programs.eww = {
+ enable = true;
+ configDir = ./eww/configDir;
+ };
+}
diff --git a/home/rices/finals/eww/configDir/eww.css b/home/rices/finals/eww/configDir/eww.css
new file mode 100644
index 0000000..a2d71be
--- /dev/null
+++ b/home/rices/finals/eww/configDir/eww.css
@@ -0,0 +1,18 @@
+.clock-container {
+ background-color: transparent;
+}
+
+.clock-time {
+ font-size: 72px;
+ font-weight: bold;
+ font-family: "FiraCode Nerd Font";
+ color: #ebdbb2;
+ text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
+}
+
+.clock-date {
+ font-size: 20px;
+ font-family: "Inter";
+ color: #a89984;
+ text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
+}
diff --git a/home/rices/finals/eww/configDir/eww.yuck b/home/rices/finals/eww/configDir/eww.yuck
new file mode 100644
index 0000000..26d0df5
--- /dev/null
+++ b/home/rices/finals/eww/configDir/eww.yuck
@@ -0,0 +1,24 @@
+(defwindow clock
+ :monitor 0
+ :stacking "bottom"
+ :exclusive false
+ :focusable false
+ :geometry (geometry
+ :width "600px"
+ :height "200px"
+ :anchor "top center"
+ :y "80px")
+ (clock-widget))
+
+(defwidget clock-widget []
+ (box
+ :class "clock-container"
+ :orientation "vertical"
+ :valign "center"
+ :halign "center"
+ (label
+ :class "clock-time"
+ :markup {formattime(EWW_TIME, "%H:%M")})
+ (label
+ :class "clock-date"
+ :markup {formattime(EWW_TIME, "%A, %B %d")})))
diff --git a/home/rices/finals/home.nix b/home/rices/finals/home.nix
index 253431a..e2c0834 100644
--- a/home/rices/finals/home.nix
+++ b/home/rices/finals/home.nix
@@ -5,6 +5,7 @@
./fuzzel.nix
./swayidle.nix
./niri.nix
+ ./eww.nix
./stylix.nix
];