summaryrefslogtreecommitdiff
path: root/config/eww
diff options
context:
space:
mode:
authorcoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
committercoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
commit8cbadb61604667b407b53ee1258433994fa4765a (patch)
tree97765fb29418fd6278fcb4cbb9760893afaf7a58 /config/eww
Diffstat (limited to 'config/eww')
-rwxr-xr-xconfig/eww/eww.scss63
-rwxr-xr-xconfig/eww/eww.yuck58
-rwxr-xr-xconfig/eww/eww_vars.yuck4
-rwxr-xr-xconfig/eww/eww_widgets.yuck21
-rwxr-xr-xconfig/eww/images/gif1.gifbin0 -> 169253 bytes
-rwxr-xr-xconfig/eww/images/gif2.gifbin0 -> 36996 bytes
-rwxr-xr-xconfig/eww/scripts/calendar.sh2
-rwxr-xr-xconfig/eww/scripts/day_format.sh14
-rwxr-xr-xconfig/eww/scripts/daytype.sh3
-rwxr-xr-xconfig/eww/scripts/month_format.sh3
-rwxr-xr-xconfig/eww/scripts/start.sh9
-rwxr-xr-xconfig/eww/scripts/year_format.sh3
12 files changed, 180 insertions, 0 deletions
diff --git a/config/eww/eww.scss b/config/eww/eww.scss
new file mode 100755
index 0000000..3975a93
--- /dev/null
+++ b/config/eww/eww.scss
@@ -0,0 +1,63 @@
+* {
+ all: unset;
+ background: transparent;
+ font-family: "JetBrainsMono Nerd Font";
+ border-radius: 10px;
+}
+
+$bg: #111111;
+$bg1: #111111;
+$bg2: #26233a;
+$fg: #ebbcba;
+$fgdim: #6e6a86;
+$accent: #9ccfd8;
+$border: #ebbcba;
+
+.container {
+ background-color: $bg1;
+ border: 1px solid $border;
+ color: $fg;
+ border-radius: 10px;
+ padding: 6px;
+ opacity: 0.9;
+}
+
+.button-label, .label {
+ font-size: 24px;
+ font-weight: bold;
+ color: $fg;
+}
+
+.completelytrans {
+ background: none;
+}
+
+.calendar-label {
+ font-size: 16px;
+ font-weight: bold;
+ color: $fg;
+}
+
+window {
+ all: unset;
+ background: transparent;
+}
+
+calendar, calendar.view, calendar.header {
+ all: unset;
+ background-color: $bg;
+ color: $fgdim;
+ font-size: 18px;
+ border-radius: 10px;
+}
+
+calendar:indeterminate {
+ color: #665c54;
+}
+
+calendar:selected {
+ background-color: $bg2;
+ border: 1px solid $accent;
+ color: $fg;
+ border-radius: 4px;
+}
diff --git a/config/eww/eww.yuck b/config/eww/eww.yuck
new file mode 100755
index 0000000..1ab7c4e
--- /dev/null
+++ b/config/eww/eww.yuck
@@ -0,0 +1,58 @@
+(include "eww_widgets.yuck")
+
+(defwindow calendar
+ :monitor 'HDMI-A-1'
+ :stacking "fg"
+ :geometry (geometry :x "1600" :y "810" :width "320" :height "250" :anchor "top right")
+ (calendar))
+
+(defwindow year
+ :monitor 'HDMI-A-1'
+ :stacking "bg"
+ :geometry (geometry :x "15" :y "15" :width "100" :height "100" :anchor "top right")
+ (year))
+
+(defwindow month
+ :monitor 'HDMI-A-1'
+ :stacking "bg"
+ :geometry (geometry :x "15" :y "125" :width "100" :height "100" :anchor "top right")
+ (month))
+
+(defwindow day
+ :monitor 'HDMI-A-1'
+ :stacking "bg"
+ :geometry (geometry :x "15" :y "235" :width "100" :height "100" :anchor "top right")
+ (day))
+
+(defwindow daytype
+ :monitor 'HDMI-A-1'
+ :stacking "bg"
+ :geometry (geometry :x "1805" :y "345" :width "100" :height "100" :achor "top right")
+ (daytype))
+
+(defwindow gif1
+ :monitor 'HDMI-A-1'
+ :windowtype "dock"
+ :stacking "bg"
+ :namespace "eww"
+ :geometry (geometry
+ :x "30px"
+ :y "30px"
+ :width "70px"
+ :height "70px"
+ :anchor "bottom right")
+ (gif1))
+
+(defwindow gif2
+ :monitor 'HDMI-A-1'
+ :windowtype "dock"
+ :stacking "bg"
+ :namespace "eww"
+ :geometry (geometry
+ :x "30px"
+ :y "250px"
+ :width "70px"
+ :height "70px"
+ :anchor "bottom right")
+ (gif2))
+
diff --git a/config/eww/eww_vars.yuck b/config/eww/eww_vars.yuck
new file mode 100755
index 0000000..35d807b
--- /dev/null
+++ b/config/eww/eww_vars.yuck
@@ -0,0 +1,4 @@
+(defpoll DAY :interval "1s" '~/.config/eww/scripts/day_format.sh')
+(defpoll MONTH :interval "1s" '~/.config/eww/scripts/month_format.sh')
+(defpoll YEAR :interval "1s" '~/.config/eww/scripts/year_format.sh')
+(defpoll DAYTYPE :interval "1s" '~/.config/eww/scripts/daytype.sh')
diff --git a/config/eww/eww_widgets.yuck b/config/eww/eww_widgets.yuck
new file mode 100755
index 0000000..d3fb0a0
--- /dev/null
+++ b/config/eww/eww_widgets.yuck
@@ -0,0 +1,21 @@
+(include "eww_vars.yuck")
+
+(defwidget day []
+ (box :height "100" :width "100" :halign "center" :valign "center" :class "container"
+ (label :class "label" :text DAY)))
+(defwidget month []
+ (box :height "100" :width "100" :halign "center" :valign "center" :class "container"
+ (label :class "label" :text MONTH)))
+(defwidget year []
+ (box :height "100" :width "100" :halign "center" :valign "center" :class "container"
+ (label :class "label" :text YEAR)))
+(defwidget daytype []
+ (box :height "100" :width "100" :halign "center" :valign "center" :class "container"
+ (label :class "label" :text DAYTYPE)))
+(defwidget gif1 []
+ (box :halign "center" :valign "center" :class "container"
+ (image :path 'images/gif1.gif')))
+
+(defwidget gif2 []
+ (box :halign "center" :valign "center" :class "container"
+ (image :path 'images/gif2.gif')))
diff --git a/config/eww/images/gif1.gif b/config/eww/images/gif1.gif
new file mode 100755
index 0000000..013df71
--- /dev/null
+++ b/config/eww/images/gif1.gif
Binary files differ
diff --git a/config/eww/images/gif2.gif b/config/eww/images/gif2.gif
new file mode 100755
index 0000000..f728b4f
--- /dev/null
+++ b/config/eww/images/gif2.gif
Binary files differ
diff --git a/config/eww/scripts/calendar.sh b/config/eww/scripts/calendar.sh
new file mode 100755
index 0000000..ada469a
--- /dev/null
+++ b/config/eww/scripts/calendar.sh
@@ -0,0 +1,2 @@
+#!bash
+cal -m
diff --git a/config/eww/scripts/day_format.sh b/config/eww/scripts/day_format.sh
new file mode 100755
index 0000000..a3e715a
--- /dev/null
+++ b/config/eww/scripts/day_format.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+day_of_month=$(date +"%d")
+day_of_month=$(echo $day_of_month | sed 's/^0*//')
+if [[ $day_of_month -ge 11 && $day_of_month -le 13 ]]; then
+ suffix="th"
+else
+ case $((day_of_month % 10)) in
+ 1) suffix="st" ;;
+ 2) suffix="nd" ;;
+ 3) suffix="rd" ;;
+ *) suffix="th" ;;
+ esac
+fi
+echo "${day_of_month}${suffix}"
diff --git a/config/eww/scripts/daytype.sh b/config/eww/scripts/daytype.sh
new file mode 100755
index 0000000..aad1cdc
--- /dev/null
+++ b/config/eww/scripts/daytype.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+day_type=$(date +"%a")
+echo "$day_type"
diff --git a/config/eww/scripts/month_format.sh b/config/eww/scripts/month_format.sh
new file mode 100755
index 0000000..2eecb3f
--- /dev/null
+++ b/config/eww/scripts/month_format.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+month=$(date +"%b")
+echo "$month"
diff --git a/config/eww/scripts/start.sh b/config/eww/scripts/start.sh
new file mode 100755
index 0000000..e032918
--- /dev/null
+++ b/config/eww/scripts/start.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Reload/Open eww
+eww kill
+eww daemon
+
+eww open year
+eww open month
+eww open day
diff --git a/config/eww/scripts/year_format.sh b/config/eww/scripts/year_format.sh
new file mode 100755
index 0000000..d8016be
--- /dev/null
+++ b/config/eww/scripts/year_format.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+year=$(date +"%Y")
+echo "$year"