sort json keys

This commit is contained in:
Aminda Suomalainen 2023-10-22 20:39:51 +03:00
parent 66015780cb
commit c33b57694b
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 35 additions and 34 deletions

View File

@ -52,7 +52,8 @@ repos:
args: [--fix=auto]
- id: pretty-format-json
args:
[--autofix, --no-ensure-ascii, --no-sort-keys]
# --no-sort-keys
[--autofix, --no-ensure-ascii]
#- id: requirements-txt-fixer
# Checks the ci: section on top of the file

View File

@ -1,6 +1,26 @@
{
"battery": {
"format": "BAT {capacity}%",
"states": {
"critical": 20,
"warning": 45
}
},
"bluetooth": {
"format": "BT {status}",
"format-connected": "BT {device_alias}",
"format-connected-battery": "BT {device_alias} {device_battery_percentage}%"
},
"clock": {
"format": "{:%a. %d.\n%b.\n%Y-%j\n%G-W%V-%u\n%F\n%H.%M.%S}"
},
"cpu": {
"format": "CPU {usage}%"
},
"layer": "top",
"position": "left",
"memory": {
"format": "RAM {percentage}%"
},
"modules-left": [
"sway/workspaces",
"sway/mode"
@ -17,20 +37,18 @@
"tray",
"clock"
],
"sway/window": {
"max-length": 50
},
"cpu": {
"format": "CPU {usage}%"
},
"memory": {
"format": "RAM {percentage}%"
},
"bluetooth": {
"format": "BT {status}",
"format-connected": "BT {device_alias}",
"format-connected-battery": "BT {device_alias} {device_battery_percentage}%"
"network": {
"format": "{ifname}",
"format-disconnected": "",
"format-ethernet": "{ifname} up",
"format-wifi": "{frequency}G {signalStrength}% {essid}",
"max-length": 50,
"tooltip-format": "{ifname}",
"tooltip-format-disconnected": "Disconnected",
"tooltip-format-ethernet": "{ifname} up",
"tooltip-format-wifi": "{frequency}G {signalStrength}% {essid}"
},
"position": "left",
"pulseaudio": {
"format": "VOL {volume}%",
"format-bluetooth": "BT VOL {volume}%",
@ -39,29 +57,11 @@
"Easy Effects Source"
]
},
"battery": {
"states": {
"warning": 45,
"critical": 20
},
"format": "BAT {capacity}%"
},
"sway/language": {
"format": "KBD {short} {variant}",
"on-click": "swaymsg input type:keyboard xkb_switch_layout next"
},
"network": {
"format": "{ifname}",
"format-wifi": "{frequency}G {signalStrength}% {essid}",
"format-ethernet": "{ifname} up",
"format-disconnected": "",
"tooltip-format": "{ifname}",
"tooltip-format-wifi": "{frequency}G {signalStrength}% {essid}",
"tooltip-format-ethernet": "{ifname} up",
"tooltip-format-disconnected": "Disconnected",
"sway/window": {
"max-length": 50
},
"clock": {
"format": "{:%a. %d.\n%b.\n%Y-%j\n%G-W%V-%u\n%F\n%H.%M.%S}"
}
}