-
-
Notifications
You must be signed in to change notification settings - Fork 2
Arch Linux Input Devices
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to input devices on Arch Linux, including keyboard configuration, mouse setup, and input device troubleshooting.
Configure layout:
# Using localectl
sudo localectl set-keymap us
# List layouts
localectl list-keymapsConfigure X11:
# Edit config
sudo vim /etc/X11/xorg.conf.d/00-keyboard.confExample:
Section "InputClass"
Identifier "keyboard"
MatchIsKeyboard "yes"
Option "XkbLayout" "us"
Option "XkbVariant" "dvorak"
EndSection
Configure shortcuts:
# GNOME
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"Configure mouse:
# X11 config
sudo vim /etc/X11/xorg.conf.d/50-mouse.confExample:
Section "InputClass"
Identifier "mouse"
MatchIsPointer "yes"
Option "AccelerationProfile" "-1"
Option "AccelerationScheme" "none"
EndSection
Adjust sensitivity:
# Using xinput
xinput list
# Set sensitivity
xinput set-prop "Mouse" "libinput Accel Speed" 0.5Test input:
# Install xev
sudo pacman -S xorg-xev
# Test keyboard
xev -event keyboard
# Test mouse
xev -event mouseManage input:
# List devices
xinput list
# List properties
xinput list-props "Device Name"
# Set property
xinput set-prop "Device Name" "Property" valueCheck keyboard:
# Check if detected
lsusb | grep -i keyboard
# Check Xorg logs
cat /var/log/Xorg.0.log | grep -i keyboardCheck mouse:
# Check if detected
lsusb | grep -i mouse
# Check Xorg logs
cat /var/log/Xorg.0.log | grep -i mouseThis guide covered keyboard, mouse configuration, input tools, and troubleshooting.
- Arch Linux Locale and Language - Locale setup
- Arch Linux Touchpad Configuration - Touchpad
- ArchWiki Input Devices: https://wiki.archlinux.org/title/Keyboard_input
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.