diff --git a/modules/desktop-environment/home/panels/default.nix b/modules/desktop-environment/home/panels/default.nix
index 920a7dc..2f0bed2 100644
--- a/modules/desktop-environment/home/panels/default.nix
+++ b/modules/desktop-environment/home/panels/default.nix
@@ -2,5 +2,6 @@
imports = [
./xmobar
./polybar.nix
+ ./eww
];
}
diff --git a/modules/desktop-environment/home/panels/eww/configDir/eww.css b/modules/desktop-environment/home/panels/eww/configDir/eww.css
new file mode 100644
index 0000000..3e12d0f
--- /dev/null
+++ b/modules/desktop-environment/home/panels/eww/configDir/eww.css
@@ -0,0 +1,7 @@
+.topbar {
+ margin-bottom: 2px;
+}
+
+label {
+ font: 14pt "FiraCode Nerd Font";
+}
\ No newline at end of file
diff --git a/modules/desktop-environment/home/panels/eww/configDir/eww.yuck b/modules/desktop-environment/home/panels/eww/configDir/eww.yuck
new file mode 100644
index 0000000..e986e0b
--- /dev/null
+++ b/modules/desktop-environment/home/panels/eww/configDir/eww.yuck
@@ -0,0 +1,85 @@
+(defwindow topBar
+ :monitor 0
+ :stacking "fg"
+ :windowtype "normal"
+ :wm-ignore true
+ :exclusive true
+ :geometry (geometry
+ :width "100%"
+ :height "32px"
+ :anchor "top center")
+ (topBar))
+
+(defwidget topBar []
+ (overlay
+ :class "topBar"
+ (centerbox
+ (box
+ :halign "start"
+ :spacing 12
+ :space-evenly false
+ (label :text " ")
+ (cpu)
+ (sep)
+ (mem)
+ )
+ (box
+ :halign "center"
+ (label :text "Hi, jade! :3")
+ )
+ (box
+ :halign "end"
+ (time)
+ )
+ )
+ (box
+ :class "transFlag"
+ :height 1
+ ( flagEl :color "#5BCEFA")
+ ( flagEl :color "#F5A9B8")
+ ( flagEl :color "#FFFFFF")
+ ( flagEl :color "#F5A9B8")
+ ( flagEl :color "#5BCEFA")
+ )
+ )
+)
+
+(defwidget sep []
+ (label :text "|")
+)
+
+(defwidget time []
+ (label
+ :markup {
+ formattime(
+ EWW_TIME,
+ " %Y-%m-%d %H:%M:%S "
+ )
+ }
+ )
+)
+
+(defwidget cpu []
+ (box
+ :class "cpuIndicator"
+ (label
+ :markup " ${strlength(round(EWW_CPU.avg, 0)) == 1 ? " ${round(EWW_CPU.avg, 0)}" : round(EWW_CPU.avg, 0)}%"
+ )
+ )
+)
+
+(defwidget mem []
+ (box
+ :class "memIndicator"
+ (label
+ :markup " ${round(EWW_RAM.used_mem_perc, 0)}%"
+ )
+ )
+)
+
+(defwidget flagEl [color]
+ (box
+ :style "border-bottom: 2px solid ${color}"
+ :halign "fill"
+ )
+)
diff --git a/modules/desktop-environment/home/panels/eww/default.nix b/modules/desktop-environment/home/panels/eww/default.nix
new file mode 100644
index 0000000..377c1f4
--- /dev/null
+++ b/modules/desktop-environment/home/panels/eww/default.nix
@@ -0,0 +1,6 @@
+{ ... }: {
+ programs.eww = {
+ enable = true;
+ configDir = ./configDir;
+ };
+}
diff --git a/modules/desktop-environment/home/panels/eww/scripts/bat.nu b/modules/desktop-environment/home/panels/eww/scripts/bat.nu
new file mode 100644
index 0000000..01a043d
--- /dev/null
+++ b/modules/desktop-environment/home/panels/eww/scripts/bat.nu
@@ -0,0 +1,23 @@
+#!/usr/bin/env nu
+
+const ICONS = [
+ [ ]
+ [ ]
+ [ ]
+ [ ]
+ [ ]
+ [ ]
+ [ ]
+ [ ]
+ [ ]
+ [ ]
+ [ ]
+];
+
+def get_bat_percent [path: string] {
+ let energy_full = open $"/sys/class/power_supply/($path)/energy_full" | into float;
+ let energy_now = open $"/sys/class/power_supply/($path)/energy_now" | into float;
+
+ ($energy_now / $energy_full) * 100
+}
+
diff --git a/modules/desktop/social.nix b/modules/desktop/social.nix
index b8569bc..ea3e560 100644
--- a/modules/desktop/social.nix
+++ b/modules/desktop/social.nix
@@ -20,6 +20,8 @@ in
signal-desktop
mumble
element-desktop
+ # nheko
+ # iamb
];
};
};