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": {
|
||||
"path": "/",
|
||||
"interval": 30,
|
||||
@@ -20,12 +13,6 @@
|
||||
"unit": "GB",
|
||||
"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": {
|
||||
"interface": "enp6s0",
|
||||
"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": {
|
||||
"path": "/",
|
||||
"interval": 30,
|
||||
@@ -20,12 +13,6 @@
|
||||
"unit": "GB",
|
||||
"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": {
|
||||
"interface": "wlp5s0",
|
||||
"interval": 5,
|
||||
|
||||
+13
-1
@@ -18,7 +18,19 @@
|
||||
"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": {
|
||||
"interval": 1,
|
||||
"format": " {load1}%",
|
||||
|
||||
+1
-1
@@ -36,6 +36,7 @@ window#waybar:first-child > box {
|
||||
}
|
||||
|
||||
#clock,
|
||||
#custom-cputemp,
|
||||
#custom-scratchpad,
|
||||
#custom-nvidia,
|
||||
#custom-theme,
|
||||
@@ -47,7 +48,6 @@ window#waybar:first-child > box {
|
||||
#pulseaudio,
|
||||
#sway-mode,
|
||||
#systemd-failed-units,
|
||||
#temperature,
|
||||
#tray {
|
||||
color: #88c0d0;
|
||||
padding-right: 16px;
|
||||
|
||||
Reference in New Issue
Block a user