.xsessionrc

Wed, 15 Feb 2017 22:53:13 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 15 Feb 2017 22:53:13 -0500
changeset 519
42e8433b8a51
parent 512
da2cf0c3d734
child 523
978cc7613a13
permissions
-rw-r--r--

assume we have unicode on guis, bring back default geometry

#!/bin/sh

PLATFORM="$(uname -s)"
VIRT='no'

if [ "$PLATFORM" = "OpenBSD" ]; then
  PATH="/usr/X11R6/bin:$PATH"
fi

hsetroot -solid "#002244" >/dev/null 2>&1 || \
  xsetroot -def -solid "#002244"

xcompmgr -n >/dev/null 2>&1 </dev/null &

xmodmap ~/.xmodmaprc

if [ -r ~/.Xdefaults.local ]; then
  xrdb -quiet -merge -DUSE_LOCAL ~/.Xdefaults
fi

urxvtd -q -o -f

make -s -C ~/.i3

if [ -r ~/.xsessionrc.local ]; then
  . ~/.xsessionrc.local
fi

if [ "$VIRT" = "yes" ]; then
  xset b off -dpms s off
else
  xset b off s 6 dpms standby 6
  xautolock -detectsleep &
  pulseaudio --daemonize
  nm-applet >/dev/null 2>&1 </dev/null &
fi

mercurial