summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/keyboard.pm13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/keyboard.pm b/lib/keyboard.pm
index 968e79d..cbcd4ce 100644
--- a/lib/keyboard.pm
+++ b/lib/keyboard.pm
@@ -602,11 +602,12 @@ sub write {
addVarsInShMode("$::prefix/etc/vconsole.conf", 0644, $h2);
}
- my $xorgconf = "# Read and parsed by systemd-localed. It's probably wise not to edit this file\n" .
- "# manually too freely.\n" .
- q(Section "InputClass"\n) .
- qq( Identifier "system-keyboard"\n) .
- q( MatchIsKeyboard "on"\n);
+ my $xorgconf = qq(# Read and parsed by systemd-localed. It's probably wise not to edit this file
+# manually too freely.
+Section "InputClass"
+ Identifier "system-keyboard"
+ MatchIsKeyboard "on"
+);
my $isus = $keyboard->{XkbLayout} && $keyboard->{XkbLayout} eq "us";
# kbd_option => enabled?
my %is_opt_enabled = (
@@ -617,7 +618,7 @@ sub write {
);
foreach my $opt (keys %is_opt_enabled) {
if ($keyboard->{$opt} && $is_opt_enabled{$opt}) {
- $xorgconf .= sprintf(q( Option "%s" "%s"\n), $opt, $keyboard->{$opt});
+ $xorgconf .= sprintf(q( Option "%s" "%s") . "\n", $opt, $keyboard->{$opt});
}
}
$xorgconf .= "EndSection\n";