.xsessionrc

Mon, 05 Jun 2017 20:26:33 -0700

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 05 Jun 2017 20:26:33 -0700
changeset 595
d034d9f4a36b
parent 571
5dfc85243b54
child 609
46f19b7955d8
permissions
-rw-r--r--

add no-tty

#!/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 || {
  cat ~/.i3/config.d/* > ~/.i3/config
  cat ~/.i3/status.d/* > ~/.i3/status
}

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

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

mercurial