Split waybar into two menus plus improvements
This commit is contained in:
@@ -11,8 +11,7 @@
|
||||
"modules-left": [
|
||||
"clock#time",
|
||||
"clock#date",
|
||||
"battery",
|
||||
"custom/terminal",
|
||||
//"battery", // broken for some reason...
|
||||
"sway/workspaces"
|
||||
],
|
||||
|
||||
@@ -20,12 +19,13 @@
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"cpu",
|
||||
"memory",
|
||||
// "cpu",
|
||||
// "memory",
|
||||
// "disk",
|
||||
"network",
|
||||
"backlight",
|
||||
"pulseaudio",
|
||||
// "network",
|
||||
// "backlight",
|
||||
// "pulseaudio",
|
||||
"custom/terminal",
|
||||
"custom/kill",
|
||||
"tray"
|
||||
],
|
||||
@@ -119,12 +119,12 @@
|
||||
|
||||
"custom/kill": {
|
||||
"on-click": "swaymsg kill",
|
||||
"format": "[KILL]"
|
||||
"format": "💀"
|
||||
},
|
||||
|
||||
"custom/terminal": {
|
||||
"on-click": "termite",
|
||||
"format": "[TERM]"
|
||||
"format": "#>_"
|
||||
},
|
||||
|
||||
|
||||
|
||||
Executable
+129
@@ -0,0 +1,129 @@
|
||||
{
|
||||
// ☢
|
||||
|
||||
//GLOBAL
|
||||
"layer": "top",
|
||||
|
||||
"position": "left",
|
||||
"width": 15,
|
||||
|
||||
"modules-left": [
|
||||
"cpu",
|
||||
"memory",
|
||||
//"battery", // broken for some reason...
|
||||
"custom/battery",
|
||||
"temperature",
|
||||
"disk",
|
||||
"backlight",
|
||||
"pulseaudio",
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
//"custom/terminal",
|
||||
"custom/keyshow",
|
||||
"custom/keyhide"
|
||||
],
|
||||
|
||||
//MODULES
|
||||
|
||||
"custom/battery": {
|
||||
"exec": "waybar_battery",
|
||||
"interval": "2",
|
||||
"return-type": "json",
|
||||
"format": "⚛ {}"
|
||||
},
|
||||
"custom/kill": {
|
||||
"on-click": "swaymsg kill",
|
||||
"format": "☠"
|
||||
},
|
||||
|
||||
"custom/keyshow": {
|
||||
"on-click": "swayphone_keyboard_show",
|
||||
"format": "K↥"
|
||||
},
|
||||
|
||||
"custom/keyhide": {
|
||||
"on-click": "swayphone_keyboard_hide",
|
||||
"format": "K↧"
|
||||
},
|
||||
|
||||
"custom/terminal": {
|
||||
"on-click": "termite",
|
||||
"format": ">_"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"interval": 5,
|
||||
"tooltip": false,
|
||||
"format": " {usage}%", //Icon: microchip
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
},
|
||||
"on-click": "termite -e \"htop --sort-key=PERCENT_CPU\""
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 5,
|
||||
"format": " {}%", // Icon: memory
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
},
|
||||
"on-click": "termite -e \"htop --sort-key=PERCENT_MEM\""
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 60,
|
||||
"format-critical": " {temperatureC}°C",
|
||||
"format": " {temperatureC}°C"
|
||||
},
|
||||
|
||||
"network": {
|
||||
"interval": 5,
|
||||
"format-wifi": " {essid}", // Icon: wifi
|
||||
"format-ethernet": " {ifname}", // Icon: ethernet
|
||||
"format-disconnected": "Disconnected",
|
||||
"tooltip-format": "{ifname}: {ipaddr}",
|
||||
"on-click": "swaymsg exec \"termite -e nmtui\""
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"scroll-step": 1,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-bluetooth": "{icon} {volume}%",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"headphones": "",
|
||||
"handsfree": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
|
||||
"disk": {
|
||||
"interval": 5,
|
||||
"format": "✇ {percentage_used:2}%", // alt:
|
||||
"path": "/"
|
||||
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{icon} {percent}% ",
|
||||
"states": [0,50],
|
||||
"format-icons": ["", ""],
|
||||
"on-click": "termite -e swayphone_backlightselect"
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
+20
-13
@@ -26,9 +26,13 @@
|
||||
#mode,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#temperature,
|
||||
#custom-battery,
|
||||
#custom-alsa,
|
||||
#custom-kill,
|
||||
#custom-terminal,
|
||||
#custom-keyshow,
|
||||
#custom-keyhide,
|
||||
#tray {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
@@ -57,16 +61,30 @@
|
||||
#backlight {
|
||||
}
|
||||
|
||||
#custom-battery.charging {
|
||||
}
|
||||
#custom-battery.discharging {
|
||||
color: green;
|
||||
}
|
||||
|
||||
#battery {
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#battery.warning {
|
||||
#battery.warning,
|
||||
#temperature.warning,
|
||||
#cpu.warning {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#battery.critical,
|
||||
#cpu.critical,
|
||||
#temperature.critical {
|
||||
color: red;
|
||||
}
|
||||
|
||||
#clock.date {
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -76,17 +94,6 @@
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
}
|
||||
|
||||
#cpu.warning {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#cpu.critical {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#memory {
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
@@ -107,7 +114,7 @@
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
color: orange;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
|
||||
Reference in New Issue
Block a user