From 6d21e09c16ab5a84a566a1cc140487949129b29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 12 Nov 2025 01:34:27 +0300 Subject: [PATCH] feat: :sparkles: optimization for eww and switching to waybar again --- .config/btop/btop.conf | 2 +- .config/eww/eww.yuck | 32 ++++++++++++++++---------------- .config/hypr/hyprland.conf | 8 ++++---- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.config/btop/btop.conf b/.config/btop/btop.conf index ff07868..0dbb910 100644 --- a/.config/btop/btop.conf +++ b/.config/btop/btop.conf @@ -57,7 +57,7 @@ update_ms = 100 #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", #* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. -proc_sorting = "memory" +proc_sorting = "cpu lazy" #* Reverse sorting order, True or False. proc_reversed = False diff --git a/.config/eww/eww.yuck b/.config/eww/eww.yuck index 75a693e..4c7f12b 100644 --- a/.config/eww/eww.yuck +++ b/.config/eww/eww.yuck @@ -47,14 +47,14 @@ `bash ~/.config/scripts/memory_status.sh`) ;; Audio volume -(defpoll volume :interval "0ms" +(defpoll volume :interval "500ms" `wpctl get-volume @DEFAULT_AUDIO_SINK@ 2>/dev/null | awk '{printf "%.0f", $2*100}' || echo "0"`) -(defpoll volume-muted :interval "0ms" +(defpoll volume-muted :interval "500ms" `wpctl get-volume @DEFAULT_AUDIO_SINK@ 2>/dev/null | grep -q MUTED && echo "true" || echo "false"`) ;; Volume info - includes song details for tooltip -(defpoll volume-info :interval "0ms" +(defpoll volume-info :interval "500ms" `bash ~/.config/scripts/volume_info.sh`) ;; DateTime info - shows date/time and system uptime for tooltip @@ -139,19 +139,19 @@ :class "tooltip-text") (eventbox (label :class "memory" - :text {mem-usage < 5 ? "◼ ${mem-usage}" : - mem-usage < 10 ? "◼◼ ${mem-usage}" : - mem-usage < 15 ? "◼◼◼ ${mem-usage}" : - mem-usage < 20 ? "◼◼◼◼ ${mem-usage}" : - mem-usage < 25 ? "◼◼◼◼◼ ${mem-usage}" : - mem-usage < 30 ? "◼◼◼◼◼◼ ${mem-usage}" : - mem-usage < 40 ? "◼◼◼◼◼◼◼ ${mem-usage}" : - mem-usage < 50 ? "◼◼◼◼◼◼◼◼ ${mem-usage}" : - mem-usage < 60 ? "◼◼◼◼◼◼◼◼◼ ${mem-usage}" : - mem-usage < 70 ? "◼◼◼◼◼◼◼◼◼◼ ${mem-usage}" : - mem-usage < 80 ? "◼◼◼◼◼◼◼◼◼◼◼ ${mem-usage}" : - mem-usage < 90 ? "◼◼◼◼◼◼◼◼◼◼◼◼ ${mem-usage}" : - "◼◼◼◼◼◼◼◼◼◼◼◼◼ ${mem-usage}"})))) + :text {mem-usage < 5 ? "▁ ${mem-usage}" : + mem-usage < 10 ? "▂ ${mem-usage}" : + mem-usage < 15 ? "▃ ${mem-usage}" : + mem-usage < 20 ? "▄ ${mem-usage}" : + mem-usage < 25 ? "▅ ${mem-usage}" : + mem-usage < 30 ? "▆ ${mem-usage}" : + mem-usage < 40 ? "▆ ${mem-usage}" : + mem-usage < 50 ? "▇ ${mem-usage}" : + mem-usage < 60 ? "▇ ${mem-usage}" : + mem-usage < 70 ? "▇ ${mem-usage}" : + mem-usage < 80 ? "█ ${mem-usage}" : + mem-usage < 90 ? "█ ${mem-usage}" : + "█ ${mem-usage}"})))) ;; Network widget (defwidget network-widget [] diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index e5ecc56..8cf3127 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -9,9 +9,9 @@ bindl = , switch:off:Lid Switch, exec, hyprctl keyword input:touchdevice:enabled bindl = , switch:off:Lid Switch, exec, hyprctl reload && hyprctl keyword input:touchdevice:enabled false # bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 2880x1800@90, 0x1080, 2" monitor = HDMI-A-1, disable -# exec-once = sleep 1 && waybar -exec-once = sleep 1 && eww daemon -exec-once = sleep 1 && eww open main +exec-once = sleep 1 && waybar +# exec-once = sleep 1 && eww daemon +# exec-once = sleep 1 && eww open main exec-once = sleep 2 && nm-applet exec-once = sleep 2 && blueman-applet exec-once = sleep 2 && hyprpaper @@ -104,7 +104,7 @@ bind = Alt, F4, killactive, bind = Alt, 4, killactive, bind = $mainMod $my_trigger, F4, exit, bind = $mainMod, H, exec, pkill -SIGUSR1 waybar -bind = $mainMod, H, exec, ~/.config/scripts/toggle_eww.sh +# bind = $mainMod, H, exec, ~/.config/scripts/toggle_eww.sh binds { allow_workspace_cycles = true }