Fix waybar

This commit is contained in:
Vladan Popovic 2020-10-18 20:22:34 +02:00
parent e0335c34be
commit 0eeb4f98cc

View file

@ -5,7 +5,7 @@
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": [], "modules-center": [],
"modules-right": ["custom/vpn", "network", "battery", "pulseaudio", "cpu", "temperature", "clock", "tray"], "modules-right": ["network", "battery", "pulseaudio", "cpu", "temperature", "clock", "tray"],
// Module config // Module config
"sway/mode": { "sway/mode": {
"tooltip": false, "tooltip": false,
@ -15,8 +15,8 @@
"thermal-zone": 1, "thermal-zone": 1,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80, "critical-threshold": 80,
"format-critical": "{temperatureC}°C", "format-critical": "{temperatureC}°C",
"format": "{temperatureC}°C" "format": "{temperatureC}°C"
}, },
"custom/vpn": { "custom/vpn": {
// setup wireguard here // setup wireguard here
@ -24,7 +24,7 @@
"network": { "network": {
"tooltip": false, "tooltip": false,
// "interface": "wlp2*", // (Optional) To force the use of this interface // "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%)", "format-wifi": "{essid} ({signalStrength}%)",
"format-ethernet": "{ifname}: {ipaddr}/{cidr}", "format-ethernet": "{ifname}: {ipaddr}/{cidr}",
"format-linked": "{ifname} (No IP)", "format-linked": "{ifname} (No IP)",
"format-alt": "{ifname}: {ipaddr}", "format-alt": "{ifname}: {ipaddr}",
@ -37,7 +37,7 @@
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
"format": "{capacity}%", "format": "{capacity}%",
"format-alt": "{time} ", "format-alt": "{time} ",
"format-charging": "{capacity}% ", "format-charging": "{capacity}% ",
"format-plugged": "{capacity}% " "format-plugged": "{capacity}% "
@ -46,12 +46,12 @@
// "format-icons": ["", "", "", "", "", "", ""] // "format-icons": ["", "", "", "", "", "", ""]
}, },
"pulseaudio": { "pulseaudio": {
"tooltip": false, "tooltip": true,
"scroll-step": 1, // %, can be a float "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon}", "format": "{icon} {volume}%",
"format-bluetooth": "{volume}% {icon}", "format-bluetooth": "{volume}% {icon}",
"format-muted": "", "format-muted": "",
"format-source": "{volume}% {icon}", "format-source": "{volume}%",
"format-source-muted": "", "format-source-muted": "",
"format-icons": { "format-icons": {
"headphones": "", "headphones": "",
@ -60,18 +60,19 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] // 
"default": [""]
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },
"cpu": { "cpu": {
"interval": 5, "interval": 5,
"tooltip": false, "tooltip": false,
"format": "{usage}%" "format": "{usage}%"
}, },
"clock": { "clock": {
"tooltip": false, "tooltip": false,
"format": "{:%d.%m.%Y %H:%M}" "format": "| {:%d.%m.%Y %H:%M}"
}, },
"tray": { "tray": {
"tooltip": false, "tooltip": false,