From f07c8aee32a9487c6469f8f1e7c434fe949b645a Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Wed, 15 Oct 2025 14:51:17 +0200 Subject: [PATCH 1/2] feat(swaybar): improve visuals --- home/oli/.config/sway/config | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/home/oli/.config/sway/config b/home/oli/.config/sway/config index 28eef74..30a5a6f 100644 --- a/home/oli/.config/sway/config +++ b/home/oli/.config/sway/config @@ -39,7 +39,7 @@ set { # border background text indicator childborder client.focused $bg $bg $text $active $active -output * bg ~/data/local/wallpaper/lukasz-szmigiel-jFCViYFYcus-unsplash.jpg fill +output * bg ~/data/local/wallpaper/kat-closon-hZX4tYgljUI-unsplash.jpg fill # output HDMI-A-1 resolution 1920x1080 position 1920,0 # You can get the names of your outputs by running: swaymsg -t get_outputs @@ -211,15 +211,17 @@ bindsym Mod4+Shift+Space exec grimshot --notify save window # man 5 sway-bar bar { position bottom - font BerkeleyMono Nerd Font Mono + font "BerkeleyMono Nerd Font Mono Normal Bold 11" status_command ~/.config/sway/status.sh - + strip_workspace_name no + strip_workspace_numbers no colors { statusline #869795 # background #ffffffa6 #background #ffffff33 - background #0000004d - inactive_workspace #32323200 #32323200 #6c7e7c + # background #0000004d + background #00000099 + inactive_workspace #323232 #323232 #6c7e7c focused_workspace #2d4844 #2d4844 #d5dad9 urgent_workspace #b4b479 #b4b479 #121c1b } From 9c2358068dfa4b0580637d467a6c6f8a929c9b00 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Wed, 15 Oct 2025 14:51:52 +0200 Subject: [PATCH 2/2] fix(swaybar): adapt thermal warnings to real-life conditions --- home/oli/.config/sway/status.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/oli/.config/sway/status.sh b/home/oli/.config/sway/status.sh index 6f9ceb0..c7420f9 100755 --- a/home/oli/.config/sway/status.sh +++ b/home/oli/.config/sway/status.sh @@ -32,13 +32,13 @@ common() { temp_cpu() { local name="cpu" local cpu=$(expr $(cat /sys/class/thermal/thermal_zone2/temp) / 1000) - if [[ $(echo "$cpu >= 55" | bc -l ) == "1" ]] && [[ $(echo "$cpu < 65" | bc -l ) == "1" ]]; then + if [[ $(echo "$cpu >= 60" | bc -l ) == "1" ]] && [[ $(echo "$cpu < 70" | bc -l ) == "1" ]]; then local bg=$warn1 local fg=$text_dark - elif [[ $(echo "$cpu >= 65" | bc -l ) == "1" ]] && [[ $(echo "$cpu < 75" | bc -l ) == "1" ]]; then + elif [[ $(echo "$cpu >= 70" | bc -l ) == "1" ]] && [[ $(echo "$cpu < 80" | bc -l ) == "1" ]]; then local bg=$warn2 local fg=$text_dark - elif [[ $(echo "$cpu >= 75" | bc -l ) == "1" ]]; then + elif [[ $(echo "$cpu >= 80" | bc -l ) == "1" ]]; then local bg=$crit local fg=$text_light else