27 lines
511 B
Bash
27 lines
511 B
Bash
#!/bin/sh
|
|
# XDM session script (sourced by XDM)
|
|
# This file is used instead of .xinitrc when using a display manager
|
|
|
|
# Load X resources
|
|
if [ -f "$HOME/.Xresources" ]; then
|
|
xrdb -merge "$HOME/.Xresources"
|
|
fi
|
|
|
|
# Set DPI scaling (96 = 1x, 144 = 1.5x, 192 = 2x)
|
|
xrandr --dpi 144
|
|
|
|
# Set keyboard repeat rate
|
|
xset r rate 200 30
|
|
|
|
# Disable screen blanking
|
|
xset s off
|
|
xset -dpms
|
|
|
|
# Start terminal emulator in background
|
|
if command -v xterm >/dev/null 2>&1; then
|
|
xterm &
|
|
fi
|
|
|
|
# Start TWM window manager
|
|
exec twm
|