Skip to content

Commit

Permalink
sway: indent sway configuration options
Browse files Browse the repository at this point in the history
Fix the indentation for the configuration of `input`, `output` and
`seat` to match that of `mode`.
  • Loading branch information
lulu-berlin committed Sep 6, 2024
1 parent 5130249 commit 03b4918
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/services/window-managers/i3-sway/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ let
moduleStr = moduleType: name: attrs: ''
${moduleType} "${name}" {
${concatStringsSep "\n"
(mapAttrsToList (name: value: "${name} ${value}") attrs)}
(mapAttrsToList (name: value: " ${name} ${value}") attrs)}
}
'';
inputStr = moduleStr "input";
Expand Down
6 changes: 3 additions & 3 deletions tests/modules/services/window-managers/sway/sway-modules.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ bindsym Mod1+v splitv
bindsym Mod1+w layout tabbed

input "*" {
xkb_variant dvorak
xkb_variant dvorak
}

output "HDMI-A-2" {
bg ~/path/to/background.png fill
bg ~/path/to/background.png fill
}

seat "*" {
hide_cursor when-typing enable
hide_cursor when-typing enable
}

mode "resize" {
Expand Down

0 comments on commit 03b4918

Please sign in to comment.