Compare commits

..

No commits in common. "c33b57694bdab437574f4bcb0cd27afc76c6cd98" and "b6ecd1b173dea0d8d8140244a9b907068793731f" have entirely different histories.

3 changed files with 66 additions and 73 deletions

View File

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

View File

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

View File

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