From 7905caf69470bcaaf370b3962b0cd94d4888acc4 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 28 May 2024 13:22:10 -0500 Subject: [PATCH] update general eww config --- home/private_dot_config/eww/eww.scss | 2 +- home/private_dot_config/eww/yuck/vars.yuck | 2 +- home/private_dot_config/eww/yuck/widgets.yuck | 27 +++++++++---------- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/home/private_dot_config/eww/eww.scss b/home/private_dot_config/eww/eww.scss index 709ca45..3dad3c5 100644 --- a/home/private_dot_config/eww/eww.scss +++ b/home/private_dot_config/eww/eww.scss @@ -70,7 +70,7 @@ $foreground: $white; // color each tag bubble from palette @each $color in $tag-palette { .ws-button-#{index($tag-palette,$color)} { - color:$color; + color: $color; } } diff --git a/home/private_dot_config/eww/yuck/vars.yuck b/home/private_dot_config/eww/yuck/vars.yuck index af5ff16..d4d5a2c 100644 --- a/home/private_dot_config/eww/yuck/vars.yuck +++ b/home/private_dot_config/eww/yuck/vars.yuck @@ -1,6 +1,6 @@ (defvar rofi-bin "~/.config/rofi/bin") -(deflisten workspaces "hyprman workspace") +(deflisten workspaces "hyprman workspaces") (defpoll clocktext :interval "10s" "date '+%d %b %I:%M %p'") (defpoll bluetooth-icon :interval "5s" "bin/bluetooth.sh") diff --git a/home/private_dot_config/eww/yuck/widgets.yuck b/home/private_dot_config/eww/yuck/widgets.yuck index 5d49c43..059a61e 100644 --- a/home/private_dot_config/eww/yuck/widgets.yuck +++ b/home/private_dot_config/eww/yuck/widgets.yuck @@ -36,18 +36,23 @@ :text clocktext :limit-width 40 ))) + (defwidget battery [] (box :orientation "h" - (label :text '${EWW_BATTERY["BAT0"].status == "Discharging" ? "󰄌" : "󰚥"} ${EWW_BATTERY["BAT0"].capacity}%') - )) + :space-evenly false + :spacing 5 + (label + :text '${EWW_BATTERY["BAT0"].status == "Discharging" ? "󰄌" : "󰚥"} ${EWW_BATTERY["BAT0"].capacity}%') + (label + :text '${EWW_BATTERY["BAT0"].capacity < 20 ? "low battery!!!": ""}'))) (defwidget ram [] (box :orientation "h" - (label :text "󰀹 ${round(EWW_RAM.used_mem_perc, 0)}% "))) + (label :text "󰀹 ${round(EWW_RAM.used_mem_perc, 0)}%"))) (defwidget cpu [] (box :orientation "h" - (label :text " ${round(EWW_CPU.avg, 0)}% "))) + (label :text " ${round(EWW_CPU.avg, 0)}%"))) (defwidget wifi [] (box :class "sysinfo" @@ -61,30 +66,22 @@ (button :onclick "${rofi-bin}/bluetooth.sh &" bluetooth-icon))) -;(defwidget chord [] -; (box :class "sysinfo" -; :visible "${wmstate.chord!=''}" -; (label :text " 󰌌 ${wmstate.chord}" -; )) -; ) - ; Composite Widgets (defwidget sysinfo [] (box :class "sysinfo" :orientation "h" + :spacing 10 :space-evenly false (ram) (cpu) - (battery) - )) + (battery))) (defwidget workspaces [screen] (box :class "workspaces panel" :orientation "h" :halign "start" - (workspaces-icons :screen screen) - )) + (workspaces-icons :screen screen))) (defwidget workspaces-icons [screen]