From 34c4fd6c58fc3a3adb3529940711ddfacb7a841b Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Mon, 29 Jan 2024 09:08:36 +0100 Subject: [PATCH] eww: Added systray widget to bar --- bar/eww/bar.scss | 31 +++++++++++++++++++++++++++++++ bar/eww/bar.yuck | 1 + 2 files changed, 32 insertions(+) diff --git a/bar/eww/bar.scss b/bar/eww/bar.scss index ece1824..dc18d64 100644 --- a/bar/eww/bar.scss +++ b/bar/eww/bar.scss @@ -37,6 +37,37 @@ color: #a286c8; } + .systray { + margin: 0px; + + & > menuitem { + menu { + padding: 5px 5px; + border-radius: 10px; + background-color: #181926; + + menuitem { + margin: 1px 0; + + &:hover { + padding-left: 2px; + } + } + + separator { + margin: 6px 0; + min-height: 3px; + border-radius: 99px; + background-color: rgba(5, 5, 5, 0.35); + } + } + } + + & > menuitem:first-child { + margin-left: 10px; + } + } + & * { .normal { color: #86b985; diff --git a/bar/eww/bar.yuck b/bar/eww/bar.yuck index 491ab78..e2f668f 100644 --- a/bar/eww/bar.yuck +++ b/bar/eww/bar.yuck @@ -190,6 +190,7 @@ (volume) (label :text "") ; Else container spacing rule doesn't apply (mic) + (systray :pack-direction "ltr" :class "systray") ) ) )