Added kill button. Added launchers for CPU, MEM and Network status buttons.

This commit is contained in:
Dejvino
2020-05-27 00:12:55 +02:00
parent d4d657d164
commit b6346d721c
4 changed files with 21 additions and 6 deletions
+10 -3
View File
@@ -7,6 +7,7 @@
"position": "bottom",
"modules-left": [
"custom/kill",
"cpu",
"memory"
// "disk"
@@ -24,6 +25,10 @@
//MODULES
"custom/kill": {
"on-click": "swaymsg kill",
"format": "[x]"
},
"battery": {
"interval": 1,
@@ -55,7 +60,8 @@
"states": {
"warning": 70,
"critical": 90
}
},
"on-click": "termite -e \"htop --sort-key=PERCENT_CPU\""
},
@@ -65,7 +71,8 @@
"states": {
"warning": 70,
"critical": 90
}
},
"on-click": "termite -e \"htop --sort-key=PERCENT_MEM\""
},
"network": {
@@ -74,7 +81,7 @@
"format-ethernet": " {ifname}", // Icon: ethernet
"format-disconnected": "Disconnected",
"tooltip-format": "{ifname}: {ipaddr}",
"on-click": "swaymsg exec cmst"
"on-click": "swaymsg exec \"termite -e nmtui\""
},
"sway/mode": {
+7
View File
@@ -27,6 +27,8 @@
#network,
#pulseaudio,
#custom-alsa,
#custom-kill,
#custom.kill,
#tray {
padding-left: 8px;
padding-right: 8px;
@@ -120,6 +122,11 @@
color: #282828;
}
#custom-kill {
background: #a32a03;
color: #282828;
}
#tray {
background: transparent;
}