From 3858f232923438bb4abc34909fb9b9de2ddcf2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 18 Oct 2023 18:57:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=20(neodymium/home)=20add=20caff?= =?UTF-8?q?ein=20button=20in=20eww=20bar=20+=20fix=20separator=20cursed=20?= =?UTF-8?q?margins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/neodymium/home/wayland/eww/eww.scss | 25 ++++++++++++++++------- hosts/neodymium/home/wayland/eww/eww.yuck | 8 ++++---- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/hosts/neodymium/home/wayland/eww/eww.scss b/hosts/neodymium/home/wayland/eww/eww.scss index 456a9a5..7b67960 100644 --- a/hosts/neodymium/home/wayland/eww/eww.scss +++ b/hosts/neodymium/home/wayland/eww/eww.scss @@ -35,31 +35,35 @@ $colors: $rosewater, $flamingo, $pink, $mauve, $red, $maroon, $peach, $yellow, $ } .seperator { - font-size: 19px; - margin-top: -1px; + font-size: 21px; &.up { + margin-top: -1px; + margin-bottom: -2px; color: mix(nth($colors, $i), $mantle, 30%); - } - &.up.active { - color: mix(nth($colors, $i), $mantle, 100%); + &.active { + color: mix(nth($colors, $i), $mantle, 100%); + } } &.down { margin-left: -12px; margin-right: -1px; + margin-bottom: -1px; + margin-top: -2px; + @if $i ==10 { color: transparent; } @else { + color: mix(nth($colors, $i + 1), $mantle, 30%); + &.active { color: mix(nth($colors, $i + 1), $mantle, 100%); } - - color: mix(nth($colors, $i + 1), $mantle, 30%); } } } @@ -73,6 +77,13 @@ $colors: $rosewater, $flamingo, $pink, $mauve, $red, $maroon, $peach, $yellow, $ all: unset; } +checkbutton { + all: unset; + margin: 4 20px; + border-radius: 50%; + background-color: $surface0; +} + .metric scale trough highlight { all: unset; background-color: $blue; diff --git a/hosts/neodymium/home/wayland/eww/eww.yuck b/hosts/neodymium/home/wayland/eww/eww.yuck index f2a34e8..5112f59 100644 --- a/hosts/neodymium/home/wayland/eww/eww.yuck +++ b/hosts/neodymium/home/wayland/eww/eww.yuck @@ -6,7 +6,6 @@ :x "0%" :y "0%" :width "100%" - :height "22px" :anchor "top center" ) :reserve (struts @@ -31,6 +30,10 @@ :orientation "h" :space-evenly false :halign "end" + (checkbox + :onchecked "systemctl --user stop swayidle" + :onunchecked "systemctl --user restart swayidle" + ) (metric :label "󰕾" :value volume @@ -100,8 +103,6 @@ ) ) - - (defwidget metric [label value onchange] (box :orientation "h" @@ -121,7 +122,6 @@ ) ) - (defpoll volume :interval "1s" "pamixer --get-volume"