waybar temperature -> custom/cputemp
This commit is contained in:
@@ -1,11 +1,4 @@
|
|||||||
{
|
{
|
||||||
"temperature": {
|
|
||||||
"hwmon-path": "/sys/devices/platform/asus-ec-sensors/hwmon/hwmon3/temp2_input",
|
|
||||||
"critical-threshold": 80,
|
|
||||||
"format-critical": "{temperatureC}°C ",
|
|
||||||
"format": " {temperatureC}°C",
|
|
||||||
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 watch sensors'"
|
|
||||||
},
|
|
||||||
"disk#disk1": {
|
"disk#disk1": {
|
||||||
"path": "/",
|
"path": "/",
|
||||||
"interval": 30,
|
"interval": 30,
|
||||||
@@ -20,12 +13,6 @@
|
|||||||
"unit": "GB",
|
"unit": "GB",
|
||||||
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 ncdu -x /mnt/hdd1/'"
|
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 ncdu -x /mnt/hdd1/'"
|
||||||
},
|
},
|
||||||
"custom/nvidia": {
|
|
||||||
"exec": "nvidia-smi --query-gpu=utilization.gpu,memory.used,temperature.gpu --format=csv,nounits,noheader | sed 's/\\([0-9]\\+\\), \\([0-9]\\+\\), \\([0-9]\\+\\)/\\1% \\2MB \\3°C/g'",
|
|
||||||
"format": " {}",
|
|
||||||
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x45 nvtop'",
|
|
||||||
"interval": 1
|
|
||||||
},
|
|
||||||
"network": {
|
"network": {
|
||||||
"interface": "enp6s0",
|
"interface": "enp6s0",
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
|
|||||||
@@ -1,11 +1,4 @@
|
|||||||
{
|
{
|
||||||
"temperature": {
|
|
||||||
"hwmon-path": "/sys/devices/platform/asus-ec-sensors/hwmon/hwmon3/temp2_input",
|
|
||||||
"critical-threshold": 80,
|
|
||||||
"format-critical": "{temperatureC}°C ",
|
|
||||||
"format": " {temperatureC}°C",
|
|
||||||
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 watch sensors'"
|
|
||||||
},
|
|
||||||
"disk#disk1": {
|
"disk#disk1": {
|
||||||
"path": "/",
|
"path": "/",
|
||||||
"interval": 30,
|
"interval": 30,
|
||||||
@@ -20,12 +13,6 @@
|
|||||||
"unit": "GB",
|
"unit": "GB",
|
||||||
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 ncdu -x /mnt/hdd1/'"
|
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 ncdu -x /mnt/hdd1/'"
|
||||||
},
|
},
|
||||||
"custom/nvidia": {
|
|
||||||
"exec": "nvidia-smi --query-gpu=utilization.gpu,memory.used,temperature.gpu --format=csv,nounits,noheader | sed 's/\\([0-9]\\+\\), \\([0-9]\\+\\), \\([0-9]\\+\\)/\\1% \\2MB \\3°C/g'",
|
|
||||||
"format": " {}",
|
|
||||||
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x45 nvtop'",
|
|
||||||
"interval": 1
|
|
||||||
},
|
|
||||||
"network": {
|
"network": {
|
||||||
"interface": "wlp5s0",
|
"interface": "wlp5s0",
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
|
|||||||
+13
-1
@@ -18,7 +18,19 @@
|
|||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"modules-left": ["systemd-failed-units", "memory", "load", "temperature", "custom/nvidia", "disk#disk1", "disk#disk2", "network"],
|
"modules-left": ["systemd-failed-units", "memory", "load", "custom/cputemp", "custom/nvidia", "disk#disk1", "disk#disk2", "network"],
|
||||||
|
"custom/cputemp": {
|
||||||
|
"exec": "sensors | grep 'CPU:' | awk '{print substr($2,2); }'",
|
||||||
|
"format": " {}",
|
||||||
|
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 watch sensors'",
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
"custom/nvidia": {
|
||||||
|
"exec": "nvidia-smi --query-gpu=utilization.gpu,memory.used,temperature.gpu --format=csv,nounits,noheader | sed 's/\\([0-9]\\+\\), \\([0-9]\\+\\), \\([0-9]\\+\\)/\\1% \\2MB \\3°C/g'",
|
||||||
|
"format": " {}",
|
||||||
|
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x45 nvtop'",
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
"load": {
|
"load": {
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
"format": " {load1}%",
|
"format": " {load1}%",
|
||||||
|
|||||||
+1
-1
@@ -36,6 +36,7 @@ window#waybar:first-child > box {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#clock,
|
#clock,
|
||||||
|
#custom-cputemp,
|
||||||
#custom-scratchpad,
|
#custom-scratchpad,
|
||||||
#custom-nvidia,
|
#custom-nvidia,
|
||||||
#custom-theme,
|
#custom-theme,
|
||||||
@@ -47,7 +48,6 @@ window#waybar:first-child > box {
|
|||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#sway-mode,
|
#sway-mode,
|
||||||
#systemd-failed-units,
|
#systemd-failed-units,
|
||||||
#temperature,
|
|
||||||
#tray {
|
#tray {
|
||||||
color: #88c0d0;
|
color: #88c0d0;
|
||||||
padding-right: 16px;
|
padding-right: 16px;
|
||||||
|
|||||||
Reference in New Issue
Block a user