diff options
| author | 2026-05-14 10:58:37 +0100 | |
|---|---|---|
| committer | 2026-05-14 10:58:37 +0100 | |
| commit | 726005786ab398e89673bf8c141e50645f676c57 (patch) | |
| tree | c6157391bfb7b41e4db1309b78b17f680f0c50c3 /dot_config/sway/executable_display-toggle.sh | |
| parent | db4c6bdcd2af6aa2b95f587974f34c0246f62cb8 (diff) | |
| download | dotfiles-726005786ab398e89673bf8c141e50645f676c57.tar.gz dotfiles-726005786ab398e89673bf8c141e50645f676c57.tar.bz2 dotfiles-726005786ab398e89673bf8c141e50645f676c57.zip | |
style: apply shfmt/prettier/just fmt drift
Pure formatter output from shfmt (2-space indent, '|' line breaks),
prettier (KEYBINDS.md), and 'just fmt' (justfile blank line).
No behavior change.
Diffstat (limited to 'dot_config/sway/executable_display-toggle.sh')
| -rwxr-xr-x | dot_config/sway/executable_display-toggle.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dot_config/sway/executable_display-toggle.sh b/dot_config/sway/executable_display-toggle.sh index 07fa59e..39e3367 100755 --- a/dot_config/sway/executable_display-toggle.sh +++ b/dot_config/sway/executable_display-toggle.sh @@ -15,14 +15,14 @@ STATE_FILE="${XDG_RUNTIME_DIR:-/tmp}/display-mode" OUTPUTS_CONF="${XDG_CONFIG_HOME:-$HOME/.config}/sway/outputs.conf" write_conf() { - # $1 = mode (laptop-off | side-by-side | laptop-only) - # remaining args are the sway `output ...` directives, one per arg. - { - printf '# Auto-generated by display-toggle.sh; do not edit.\n' - printf '# Current mode: %s\n' "$1" - shift - for line in "$@"; do printf '%s\n' "$line"; done - } >"$OUTPUTS_CONF" + # $1 = mode (laptop-off | side-by-side | laptop-only) + # remaining args are the sway `output ...` directives, one per arg. + { + printf '# Auto-generated by display-toggle.sh; do not edit.\n' + printf '# Current mode: %s\n' "$1" + shift + for line in "$@"; do printf '%s\n' "$line"; done + } >"$OUTPUTS_CONF" } OUTPUTS=$(swaymsg -t get_outputs -r) |
