diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-11-08 16:00:24 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-11-08 16:38:05 +0100 |
commit | 7cada561dea3aedce37c54cbd32ac0de121b79fe (patch) | |
tree | 03e84858bcf2723a5a0f6fec4e04ba7ae1446c64 /lib/keyboard.pm | |
parent | 7bffa4cad795610ccfb97496833b2c1124070834 (diff) | |
download | drakx-kbd-mouse-x11-7cada561dea3aedce37c54cbd32ac0de121b79fe.tar drakx-kbd-mouse-x11-7cada561dea3aedce37c54cbd32ac0de121b79fe.tar.gz drakx-kbd-mouse-x11-7cada561dea3aedce37c54cbd32ac0de121b79fe.tar.bz2 drakx-kbd-mouse-x11-7cada561dea3aedce37c54cbd32ac0de121b79fe.tar.xz drakx-kbd-mouse-x11-7cada561dea3aedce37c54cbd32ac0de121b79fe.zip |
perl_checker cleanups
Diffstat (limited to 'lib/keyboard.pm')
-rw-r--r-- | lib/keyboard.pm | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/keyboard.pm b/lib/keyboard.pm index 5065611..2fe829d 100644 --- a/lib/keyboard.pm +++ b/lib/keyboard.pm @@ -597,28 +597,28 @@ sub write { setVarsInSh("$::prefix/etc/sysconfig/keyboard", $keyboard); - if ($keyboard->{'KEYTABLE'}) { - my $h2 = { 'KEYMAP' => $keyboard->{'KEYTABLE'} }; + if ($keyboard->{KEYTABLE}) { + my $h2 = { 'KEYMAP' => $keyboard->{KEYTABLE} }; 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" . - "Section \"InputClass\"\n" . - " Identifier \"system-keyboard\"\n" . - " MatchIsKeyboard \"on\"\n"; - my $isus = $keyboard->{'XkbLayout'} && $keyboard->{'XkbLayout'} eq "us"; - if ($keyboard->{'XkbLayout'} && !$isus) { - $xorgconf .= " Option \"XkbLayout\" \"" . $keyboard->{'XkbLayout'} . "\"\n"; + q(Section "InputClass"\n) . + qq( Identifier "system-keyboard"\n) . + q( MatchIsKeyboard "on"\n); + my $isus = $keyboard->{XkbLayout} && $keyboard->{XkbLayout} eq "us"; + if ($keyboard->{XkbLayout} && !$isus) { + $xorgconf .= " Option \"XkbLayout\" \"" . $keyboard->{XkbLayout} . "\"\n"; } - if ($keyboard->{'XkbModel'} && (!$isus || $keyboard->{'XkbModel'} ne "pc105")) { - $xorgconf .= " Option \"XkbModel\" \"" . $keyboard->{'XkbModel'} . "\"\n"; + if ($keyboard->{XkbModel} && (!$isus || $keyboard->{XkbModel} ne "pc105")) { + $xorgconf .= " Option \"XkbModel\" \"" . $keyboard->{XkbModel} . "\"\n"; } - if ($keyboard->{'XkbVariant'}) { - $xorgconf .= " Option \"XkbVariant\" \"" . $keyboard->{'XkbVariant'} . "\"\n"; + if ($keyboard->{XkbVariant}) { + $xorgconf .= " Option \"XkbVariant\" \"" . $keyboard->{XkbVariant} . "\"\n"; } - if ($keyboard->{'XkbOptions'}) { - $xorgconf .= " Option \"XkbOptions\" \"" . $keyboard->{'XkbOptions'} . "\"\n"; + if ($keyboard->{XkbOptions}) { + $xorgconf .= " Option \"XkbOptions\" \"" . $keyboard->{XkbOptions} . "\"\n"; } $xorgconf .= "EndSection\n"; output_p("$::prefix/etc/X11/xorg.conf.d/00-keyboard.conf", $xorgconf); |