Files
dotfiles/.xinitrc
2020-05-10 22:22:24 -07:00

63 lines
1.3 KiB
Bash

#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xset r rate 400 30
systemctl --user start check-battery.timer &
xset +fp /usr/share/fonts/
# xset +fp /usr/share/fonts/noto/
# xset +fp /usr/share/fonts/liberation/ s
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
# Adjust keyboard typematic delay and rate
#xset r rate 270 30
# Fix fonts for high resolution retina/hidpi display:
# Start Xorg server at this DPI
#xrandr --dpi 144
# QT and GTK autodetect retina screen and autoadjust
#export QT_AUTO_SCREEN_SCALE_FACTOR=1
#export GDK_SCALE=2
#export GDK_DPI_SCALE=0.5
#xrdb -merge ~/.Xresources #already performed above
#exec openbox-session
exec i3