Setting up Ubuntu 24.04 after installation
Instructions for configuring keyboard layout switching, setting the number of workspaces, and quick keys for switching between them. Disabling the delay when entering an incorrect password.
Configuring Keyboard Layout Switching with Alt-Shift on Ubuntu 24.04 in Wayland
Unfortunately, the built-in input window for switching layouts does not allow the commonly used combinations Alt-Shift or Ctrl-Shift. To configure these layout switching combinations in Wayland, you can use the following commands:
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Alt>Shift_L']"
gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['<Shift>Alt_L']"
Add an indicator for the layout on the keyboard using the Scroll Lock indicator.
gsettings set org.gnome.desktop.input-sources xkb-options "['grp_led:scroll', 'grp:alt_shift_toggle']"
By the way, this removes the on-screen layout switching indicator. If you want to revert it back to how it was, reset this parameter:
gsettings reset org.gnome.desktop.input-sources xkb-options
gsettings get org.gnome.desktop.input-sources xkb-options
Configuring the Number of Workspaces
Open Settings/Multitasking and switch to Fixed number of workspaces:

Configuring Hotkeys for Switching Between Workspaces
Open Settings/Keyboard/Shortcuts:

Next, go to Navigation/Switch to workspace 1 and assign the desired key combination:

In this dialog, you can only assign combinations for four workspaces. If you need more, you can do it via the console:
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-10 "['<Alt>0']"
How to Remove the Delay After Entering an Incorrect Password in Ubuntu?
In the file /etc/pam.d/common-auth
, you need to add the nodelay
option. This will remove the delay between incorrect
passwords for both direct user login, through sudo, and via SSH connection.
auth [success=1 default=ignore] pam_unix.so nullok nodelay