blob: 6a6bc273e51a1635f1aa1d754b844c917d62e0de [file] [log] [blame]
#!/bin/sh
set -e
# Set Xft.dpi. Some applications (e.g. Chrome) use this to detect HiDPI.
if which xdpyinfo xrdb > /dev/null 2>&1; then
DPI=`xdpyinfo | grep "dots per inch" | sed "s|^.* \([0-9]\+\)x.*$|\1|g"`
echo Xft.dpi: $DPI | xrdb -merge
fi
if which xsetroot > /dev/null 2>&1; then
xsetroot -cursor_name left_ptr
fi
if [ -f ~/.sommelierrc ]; then
. ~/.sommelierrc
fi
exit 0