From 9548735a31f1092b72113b532a4bbc6611cfd878 Mon Sep 17 00:00:00 2001 From: "SilverAg.L" Date: Sat, 8 Nov 2025 08:49:23 +0800 Subject: [PATCH] update - to make popup better fit - to persist the CPU temp. mon. (arch forum id=282319) --- .config/niri/config.kdl | 4 ++-- .config/waybar/config.jsonc | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 2a54807..5c8f95a 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -216,8 +216,8 @@ window-rule { match title="^(图片查看器|.*记录)$" app-id="QQ" match app-id="pavucontrol-qt" - default-column-width { proportion 0.75; } - default-window-height { proportion 0.75; } + default-column-width { proportion 0.6; } + default-window-height { proportion 0.85; } open-floating true } diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index dfaed5a..c0e04de 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -60,7 +60,8 @@ }, "temperature": { // "thermal-zone": 1, - "hwmon-path": "/sys/class/hwmon/hwmon6/temp1_input", + "hwmon-path-abs": "/sys/devices/platform/coretemp.0/hwmon", + "input-filename": "temp1_input", "critical-threshold": 80, // "format-critical": "{temperatureC}°C {icon}", "format": "{icon} {temperatureC}°C", @@ -95,4 +96,4 @@ ], "interval": 1 } -} \ No newline at end of file +}