Compare commits

...

3 Commits

3 changed files with 73 additions and 66 deletions

View File

@ -91,6 +91,6 @@ end_of_line = crlf
# YAML requires spaces. The GitHub citation files look YAML to me.
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files
[*.{cff,yaml,yml}]
[*.{cff,yaml,yml,json}]
indent_style = space
indent_size = 2

View File

@ -41,7 +41,7 @@ repos:
- id: detect-private-key
- id: fix-byte-order-marker
#- id: check-docstring-first
#- id: check-json
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-xml
@ -49,9 +49,11 @@ repos:
#- id: fix-encoding-pragma
#args: [--remove]
- id: mixed-line-ending
args: [--fix=auto]
- id: pretty-format-json
args:
[--fix=auto]
#- id: pretty-format-json
# --no-sort-keys
[--autofix, --no-ensure-ascii]
#- id: requirements-txt-fixer
# Checks the ci: section on top of the file
@ -120,8 +122,8 @@ repos:
rev: "v3.0.3"
hooks:
- id: prettier
# These are handled by Black below
exclude_types: [python, pyi, jupyter]
# These are handled by Black below or pretty-format-json above
exclude_types: [python, pyi, jupyter, json]
additional_dependencies: [
# https://www.npmjs.com/package/prettier
"prettier@3.0.3",

View File

@ -1,7 +1,30 @@
{
"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",
"modules-left": ["sway/workspaces", "sway/mode"],
"memory": {
"format": "RAM {percentage}%"
},
"modules-left": [
"sway/workspaces",
"sway/mode"
],
"modules-right": [
"gamemode",
"cpu",
@ -14,49 +37,31 @@
"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}%",
"ignored-sinks": ["Easy Effects Sink", "Easy Effects Source"]
},
"battery": {
"states": {
"warning": 45,
"critical": 20
},
"format": "BAT {capacity}%"
"ignored-sinks": [
"Easy Effects Sink",
"Easy Effects Source"
]
},
"sway/language": {
"format": "KBD {short} {variant}",
"on-click": "swaymsg input type:keyboard xkb_switch_layout next"
},
"network": {
//"interface": "wlan0",
"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}"
}
}