In 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.
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:
Press the 'Win' button, or click on 'Activities'
Type 'Ubuntu Software' and hit 'enter' or click on 'Ubuntu Software'
Type 'gnome-tweaks'
Select the 'Tweaks' software package
Click on 'Install'
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 ','.
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.
In 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.
There is an implemented option for
kpdl(dot)
:for permanent changes add the option to /etc/default/keyboard
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:In
/usr/share/X11/xkb/rules/evdev.xml
, add this: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:
or without a terminal:
To run the tool, type in a terminal:
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 ','.
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