The German decimal mark standard is a comma (e.g. 1.400,50 one-thousand-fourhundred-euro-and-fifty-cent).
Most apps use the US standard period. Is there a way to quickly switch the comma to a period on the numeric keypad (and back)?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityIn Ubuntu 18.04 I couldn't find any appropriate option in "standard" settings (neither in Devices -> Keyboard, nor in Region & Language).
The "clickable" solution I found uses gnome-tweak-tool
that I had previously installed for other reasons:
sudo apt install gnome-tweak-tool
To run the tool hit Win button and type Tweaks.
In the app in Keyboard & Mouse tab click Additional Layout Options and open the Numeric keypad Delete behavior section. Multiple of the available options there worked for me (I have selected Four-level key with dot as my default).
The nice thing with this solution is that the change is applied instantly as you select the option (no need to click apply or anything). This might be useful if you need to change temporarily to do something and go back to default - just leave the app open do your thing and click back when you are done.
u+202f
). Rad!
Mar 1, 2020 at 17:37
There is an implemented option for kpdl(dot)
:
setxkbmap de -option kpdl:dot
for permanent changes add the option to /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE
XKBMODEL="pc105"
XKBLAYOUT="de"
XKBVARIANT=""
XKBOPTIONS="kpdl:dot"
BACKSPACE="guess"
This way it will be independent from your xkb-data and safe on dist upgrade.
One way is to create a custom keyboard layout.
In /usr/share/X11/xkb/symbols/de
, add this:
partial alphanumeric_keys
xkb_symbols "dot" {
include "de(basic)"
include "kpdl(dot)"
name[Group1]="German (dot as decimal separator)";
};
In /usr/share/X11/xkb/rules/evdev.xml
, add this:
<variant>
<configItem>
<name>dot</name>
<description>German (dot as decimal separator)</description>
</configItem>
</variant>
After next reboot you'll be able to add the German (dot as decimal separator) layout and then switch easily between that layout and German.
In Ubuntu 20.04 this can be achieved with gnome-tweaks.
To install gnome-tweaks, type in a terminal:
sudo apt install gnome-tweaks
or without a terminal:
To run the tool, type in a terminal:
gnome-tweaks
or without a terminal
Press the 'Win' button, or click on 'Activities',
type 'Tweaks' and hit enter
Click on 'Keyboard & Mouse'
Click on 'Additional Layout Options'
Click on 'Numeric keypad Delete behavior'
Click on 'Four-level key with dot'
Now the ',' key behaves as it was a '.' key. If you need the ',' you can hold the 'alt gr' key and press ','.
You can also choose 'Legacy key with dot', and later change it back to 'Disabled' or 'Legacy key with comma'.
For people with a US international keyboard with a '.' on the numeric pad, but regularly need a ','. Select 'Four-level key with dot' if you more often need a '.', or 'Four-level key with comma' if you more often need the ','.
As I couldn't google a way to do it for the Mate desktop: for Mate 1.24.1 start Keyboard Preferences, select Layouts and the button "Options". Below "Layout of numeric keypad" there is an entry called "Legacy" which changes the comma to a dot. That's the only thing it seems to change.
Here are some ways to change it. In may case it works with Keyboard settings > Layout > Options. There is option for numeric Del button. Found myself easy.
Other way with xmodmap. I don't like it.
Both ways are here from awesome guys: https://ubuntuforums.org/showthread.php?t=1377642