From 5f0175c687a668e7af037b2158bcf62713b560c0 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Wed, 28 Aug 2024 17:54:25 +0900 Subject: Waybar modules Weather and Temperature are moved up to beginning for easy edit of these modules --- config/waybar/modules | 91 +++++++++++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 43 deletions(-) diff --git a/config/waybar/modules b/config/waybar/modules index 6ae63e03..3b920fe1 100644 --- a/config/waybar/modules +++ b/config/waybar/modules @@ -2,6 +2,53 @@ /* Waybar Modules */ { + +// Weather and Temperature Modules as this is most like to change always. +// Result is of course easier to edit +"custom/weather": { + "format": "{}", + "format-alt": "{alt}: {}", + "format-alt-click": "click", + "interval": 3600, + "return-type": "json", + "exec": "~/.config/hypr/UserScripts/Weather.sh", + //"exec": "~/.config/hypr/UserScripts/Weather.py", + "exec-if": "ping wttr.in -c1", + "tooltip": true, +}, +"temperature": { + "interval": 10, + "tooltip": true, + "hwmon-path": [ + "/sys/class/hwmon/hwmon1/temp1_input", + "/sys/class/thermal/thermal_zone0/temp" + ], + //"thermal-zone": 0, + "critical-threshold": 82, + "format-critical": "{temperatureC}°C {icon}", + "format": "{temperatureC}°C {icon}", + "format-icons": [ + "󰈸" + ], + "on-click-right": "kitty --title nvtop sh -c 'nvtop'" +}, +"temperature#vertical": { + "interval": 10, + "tooltip": true, + "hwmon-path": [ + "/sys/class/hwmon/hwmon1/temp1_input", + "/sys/class/thermal/thermal_zone0/temp" + ], + //"thermal-zone": 0, + "critical-threshold": 80, + "format-critical": "{icon}\n{temperatureC}°C", + "format": " {icon}", + "format-icons": [ + "󰈸" + ], + "on-click-right": "kitty --title nvtop sh -c 'nvtop'" +}, + // HYPRLAND WORKSPACES. CHOOSE as desired and place on waybar configs // CIRCLES Style "hyprland/workspaces": { @@ -568,22 +615,6 @@ "tooltip-format": "{source_desc} | {source_volume}%", "scroll-step": 5, }, -"temperature": { - "interval": 10, - "tooltip": true, - "hwmon-path": [ - "/sys/class/hwmon/hwmon1/temp1_input", - "/sys/class/thermal/thermal_zone0/temp" - ], - //"thermal-zone": 0, - "critical-threshold": 82, - "format-critical": "{temperatureC}°C {icon}", - "format": "{temperatureC}°C {icon}", - "format-icons": [ - "󰈸" - ], - "on-click-right": "kitty --title nvtop sh -c 'nvtop'" -}, "tray": { "icon-size": 18, "spacing": 4, @@ -712,17 +743,7 @@ "tooltip": true, "tooltip-format": "Left Click: Update System\nArch Linux Only", }, -"custom/weather": { - "format": "{}", - "format-alt": "{alt}: {}", - "format-alt-click": "click", - "interval": 3600, - "return-type": "json", - "exec": "~/.config/hypr/UserScripts/Weather.sh", - //"exec": "~/.config/hypr/UserScripts/Weather.py", - "exec-if": "ping wttr.in -c1", - "tooltip": true, -}, + // Separators "custom/separator#dot": { "format": "", @@ -840,22 +861,6 @@ "tooltip": true, "tooltip-format": "{source_desc} | {source_volume}%", }, -"temperature#vertical": { - "interval": 10, - "tooltip": true, - "hwmon-path": [ - "/sys/class/hwmon/hwmon1/temp1_input", - "/sys/class/thermal/thermal_zone0/temp" - ], - //"thermal-zone": 0, - "critical-threshold": 80, - "format-critical": "{icon}\n{temperatureC}°C", - "format": " {icon}", - "format-icons": [ - "󰈸" - ], - "on-click-right": "kitty --title nvtop sh -c 'nvtop'" -}, "custom/power_vertical": { "format": "⏻", "exec": "echo ; echo 󰟡 power // blur", -- cgit v1.2.3