From 6629ee5b9d4cb1c55c1f7304c3591bc48547d334 Mon Sep 17 00:00:00 2001 From: candifloss Date: Tue, 6 Aug 2024 23:27:11 +0530 Subject: [PATCH] rearranged code blocks --- eww/yuck/dock/dock_widg.yuck | 40 +++++++++++++++++++++------------- eww/yuck/panel/panel_widg.yuck | 10 ++++++++- 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/eww/yuck/dock/dock_widg.yuck b/eww/yuck/dock/dock_widg.yuck index 88539db..1e7a642 100644 --- a/eww/yuck/dock/dock_widg.yuck +++ b/eww/yuck/dock/dock_widg.yuck @@ -1,18 +1,3 @@ -(defwidget dock_widg [] - (box - :class "dock_widg" - :active false - :halign "fill" - :height 50 - :width 200 - :active true - (dock_icon :pinned_app "${apps}") ;These widgs are for testing - (dock_icon :pinned_app "${firefox}") - (dock_icon :pinned_app "${files}") - (dock_icon :pinned_app "${terminal}") - ) -) - (defwidget dock_icon [pinned_app] (eventbox :class "dock_icon ${pinned_app.alias}" @@ -27,6 +12,31 @@ ) ) +(defwidget dock_widg [] + (box + :class "dock_widg" + :halign "fill" + :height 50 + :width 200 + :active true + + ;These icons are for testing, not fully implemented + (dock_icon + :pinned_app "${apps}" + ) + (dock_icon + :pinned_app "${firefox}" + ) + (dock_icon + :pinned_app "${files}" + ) + (dock_icon + :pinned_app "${terminal}" + ) + ) +) + + ;These vars are for testing (defvar firefox diff --git a/eww/yuck/panel/panel_widg.yuck b/eww/yuck/panel/panel_widg.yuck index ecc1caf..2d35b7e 100644 --- a/eww/yuck/panel/panel_widg.yuck +++ b/eww/yuck/panel/panel_widg.yuck @@ -1,2 +1,10 @@ -(defwidget panel_widg +(defwidget panel_widg [] + (centerbox + :class "panel_widg" + :halign "fill" + :height 50 + :width 200 + :active true + + ) ) \ No newline at end of file