Valid json formatting

This commit is contained in:
RealStickman 2023-05-01 16:39:44 +02:00
parent 1c972e9bfd
commit 1ece5009b3

View File

@ -1,10 +1,9 @@
{ {
// "layer": "top", // Waybar at top layer "layer": "top",
// "position": "bottom", // Waybar position (top|bottom|left|right) "position": "bottom",
"height": 30, // Waybar height (to be removed for auto height) "height": 30,
// "width": 1280, // Waybar width "width": 1280,
"spacing": 4, // Gaps between modules (4px) "spacing": 4,
// Choose the order of the modules
"modules-left": [ "modules-left": [
"sway/workspaces", "sway/workspaces",
"sway/mode", "sway/mode",
@ -28,22 +27,21 @@
"clock", "clock",
"tray" "tray"
], ],
// Modules configuration "sway/workspaces": {
// "sway/workspaces": { "disable-scroll": true,
// "disable-scroll": true, "all-outputs": true,
// "all-outputs": true, "format": "{name}: {icon}",
// "format": "{name}: {icon}", "format-icons": {
// "format-icons": { "1": "",
// "1": "", "2": "",
// "2": "", "3": "",
// "3": "", "4": "",
// "4": "", "5": "",
// "5": "", "urgent": "",
// "urgent": "", "focused": "",
// "focused": "", "default": ""
// "default": "" }
// } },
// },
"keyboard-state": { "keyboard-state": {
"numlock": true, "numlock": true,
"capslock": true, "capslock": true,
@ -97,11 +95,11 @@
} }
}, },
"tray": { "tray": {
// "icon-size": 21, "icon-size": 21,
"spacing": 10 "spacing": 10
}, },
"clock": { "clock": {
// "timezone": "America/New_York", "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}" "format-alt": "{:%Y-%m-%d}"
}, },
@ -113,21 +111,21 @@
"format": "{}% " "format": "{}% "
}, },
"temperature": { "temperature": {
// "thermal-zone": 2, "thermal-zone": 2,
// "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 {icon}", "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""] "format-icons": ["", "", ""]
}, },
"backlight": { "backlight": {
// "device": "acpi_video1", "device": "acpi_video1",
"format": "{percent}% {icon}", "format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""] "format-icons": ["", "", "", "", "", "", "", "", ""]
}, },
"battery": { "battery": {
"states": { "states": {
// "good": 95, "good": 95,
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
@ -135,15 +133,15 @@
"format-charging": "{capacity}% ", "format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ", "format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module "format-good": "",
// "format-full": "", "format-full": "",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"battery#bat2": { "battery#bat2": {
"bat": "BAT2" "bat": "BAT2"
}, },
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface "interface": "wlp2*",
"format-wifi": "{essid} ({signalStrength}%) ", "format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ", "format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ", "tooltip-format": "{ifname} via {gwaddr} ",
@ -152,7 +150,7 @@
"format-alt": "{ifname}: {ipaddr}/{cidr}" "format-alt": "{ifname}: {ipaddr}/{cidr}"
}, },
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float "scroll-step": 1,
"format": "{volume}% {icon} {format_source}", "format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}",
@ -179,7 +177,7 @@
"default": "🎜" "default": "🎜"
}, },
"escape": true, "escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null",
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null"
} }
} }