X - jasper-zanjani/dotfiles GitHub Wiki

X

Test X11 with the config file automatically generated after Xorg -configure

X -config $HOME/xorg.conf.new

xhost

Enable access control to X server

xhost -

Disable access control to X server, allowing clients from any host to connect (not unsafe if you use a firewall that allows only SSH)

xhost +

Add $HOST to list of authorized clients for X server

xhost +$HOST

Remove $HOST from list of authorized clients for X server

xhost -$HOST

Add $USER to ACL

xhost si:localuser:$USER

xmodmap

Replacing Caps Lock with Escape

! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock

Xorg

Enable automatic configuration of X11 server

Xorg -configure

xrandr

Change resolution of DisplayPort1 to 1920x1080

xrandr --output DP1 --mode 1920x1080

Disable VGA1 output

xrandr --output VGA1 --off

Display current state of the system

xrandr -q  --query

xset

Dynamically add fonts [Haeder: 307][Haeder]

xset fp+ /usr/local/fonts
⚠️ **GitHub.com Fallback** ⚠️