From f3407d3d21c29eb4a59732d02f8f309b113fa480 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 27 Aug 2026 01:45:17 +0530 Subject: desktop: added the system information section and some basic styles --- modules/desktop/eww/yuck.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/desktop/eww/yuck.nix') diff --git a/modules/desktop/eww/yuck.nix b/modules/desktop/eww/yuck.nix index f4040d5..d522d9b 100644 --- a/modules/desktop/eww/yuck.nix +++ b/modules/desktop/eww/yuck.nix @@ -94,7 +94,9 @@ :vexpand true (workspaces-widget) (box :vexpand true) - (windows-widget))) + (windows-widget) + (box :vexpand true) + (system-widget))) (defwidget workspaces-widget [] (box :orientation "v" :space-evenly false :spacing 4 :halign "fill" :class "workspaces" @@ -118,6 +120,11 @@ :tooltip "''${w.app_id}: ''${w.title != ''' ? ' ' : '''}''${w.title}" (box :halign "fill" :class "window-button ''${w.is_focused ? 'focused' : '''}" (image :class "window-icon" :path "''${w.icon != ''' ? w.icon : '${../../../assets/icons/unknown.svg}'}" :image-width 20 :image-height 20)))))) + + (defwidget system-widget [] + (box :orientation "v" :space-evenly false :spacing 6 :halign "fill" :class "system" + (label :class "system-item" :text time) + (label :class "system-item" :text date))) ''; }; } -- cgit v1.2.3