mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
sort json keys
This commit is contained in:
parent
66015780cb
commit
c33b57694b
@ -52,7 +52,8 @@ repos:
|
|||||||
args: [--fix=auto]
|
args: [--fix=auto]
|
||||||
- id: pretty-format-json
|
- id: pretty-format-json
|
||||||
args:
|
args:
|
||||||
[--autofix, --no-ensure-ascii, --no-sort-keys]
|
# --no-sort-keys
|
||||||
|
[--autofix, --no-ensure-ascii]
|
||||||
#- id: requirements-txt-fixer
|
#- id: requirements-txt-fixer
|
||||||
|
|
||||||
# Checks the ci: section on top of the file
|
# Checks the ci: section on top of the 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",
|
"layer": "top",
|
||||||
"position": "left",
|
"memory": {
|
||||||
|
"format": "RAM {percentage}%"
|
||||||
|
},
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces",
|
"sway/workspaces",
|
||||||
"sway/mode"
|
"sway/mode"
|
||||||
@ -17,20 +37,18 @@
|
|||||||
"tray",
|
"tray",
|
||||||
"clock"
|
"clock"
|
||||||
],
|
],
|
||||||
"sway/window": {
|
"network": {
|
||||||
"max-length": 50
|
"format": "{ifname}",
|
||||||
},
|
"format-disconnected": "",
|
||||||
"cpu": {
|
"format-ethernet": "{ifname} up",
|
||||||
"format": "CPU {usage}%"
|
"format-wifi": "{frequency}G {signalStrength}% {essid}",
|
||||||
},
|
"max-length": 50,
|
||||||
"memory": {
|
"tooltip-format": "{ifname}",
|
||||||
"format": "RAM {percentage}%"
|
"tooltip-format-disconnected": "Disconnected",
|
||||||
},
|
"tooltip-format-ethernet": "{ifname} up",
|
||||||
"bluetooth": {
|
"tooltip-format-wifi": "{frequency}G {signalStrength}% {essid}"
|
||||||
"format": "BT {status}",
|
|
||||||
"format-connected": "BT {device_alias}",
|
|
||||||
"format-connected-battery": "BT {device_alias} {device_battery_percentage}%"
|
|
||||||
},
|
},
|
||||||
|
"position": "left",
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "VOL {volume}%",
|
"format": "VOL {volume}%",
|
||||||
"format-bluetooth": "BT VOL {volume}%",
|
"format-bluetooth": "BT VOL {volume}%",
|
||||||
@ -39,29 +57,11 @@
|
|||||||
"Easy Effects Source"
|
"Easy Effects Source"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"battery": {
|
|
||||||
"states": {
|
|
||||||
"warning": 45,
|
|
||||||
"critical": 20
|
|
||||||
},
|
|
||||||
"format": "BAT {capacity}%"
|
|
||||||
},
|
|
||||||
"sway/language": {
|
"sway/language": {
|
||||||
"format": "KBD {short} {variant}",
|
"format": "KBD {short} {variant}",
|
||||||
"on-click": "swaymsg input type:keyboard xkb_switch_layout next"
|
"on-click": "swaymsg input type:keyboard xkb_switch_layout next"
|
||||||
},
|
},
|
||||||
"network": {
|
"sway/window": {
|
||||||
"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",
|
|
||||||
"max-length": 50
|
"max-length": 50
|
||||||
},
|
|
||||||
"clock": {
|
|
||||||
"format": "{:%a. %d.\n%b.\n%Y-%j\n%G-W%V-%u\n%F\n%H.%M.%S}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user