Xorg is the most popular display server among Linux users. You can find my X config in
yay -Ss xorg xorg-xinit xorg-xmodmap xterm xclip
You can copy the default xinitrc file from
you should edit it before execution, since we didn't install
cp /etc/X11/xinit/xinitrc ~/.xinitrc
You can execute xmonad or any other WM/DE with
.xinitrc as simple as:
#!/bin/sh exec xmonad
~/.Xresources file is useful if you want to add a color theme for some X applications, or configure X fonts appearance, or e.g. change the Xcursor theme.
Check wiki examples. You also can check my config.
Most Display managers load the ~/.Xresources file on login.
Laptop specific configuration.
yay -S xf86-input-libinput
xmodmap -pke > ~/.Xmodmap
To temporary change your keyboard layout:
lspci | grep -e VGA -e 3D
If you have ATI(AMD) card, your installation could be pretty easy, just follow the wiki.
However you could install multiple Window Managers or DE and change them with this script or with display manager.
It is also possible to replace default DE's window manager with desired one, e.g.: xmonad in KDE.
My favorite tiling window manager, spending 99% of my time using it. See #Xmonad configuration.
Install #KDE first.
Create a directory ~/.config/plasma-workspace/env if it does not already exist. Create a file there called
set_window_manager.sh and add this:
Restart your session and enjoy xmonad with KDE.
You should have #xmonad config in
Read more about KDE5.
yay -S plasma kde-applications kdeconnect powerdevil sudo systemctl enable sddm.service # enable KDE login manager reboot
Read more about GNOME.
yay -S gnome gnome-extra sudo systemctl enable gdm.service # enable GNOME login manager reboot
Xprofile allows you to execute commands at the beginning of the X user session. It is similar to #xinitrc.
If you want to add/modify this file, means that you decided to use xmonad or any other WM.
Run programs you wish before the window manager is started:
# Start WM exec xmonad
Xmonad only launching here because you can launch commands like background or composite manager from
xmonad.hs startup hook.
Should be obvious, that to launch programs they should be installed first.
If you picked GNOME, or any other Desktop Environment, you probably already have a Display Manager, so just skip this step. SDDM is a part of #KDE group.
yay -S sddm sudo systemctl enable sddm.service # enable Simple Desktop Display Manager
SDDM will load
US by default, if you want to use specific keyboard layout rather then
US, generate it with
localectl set-x11-keymap dvorak