.xsessionrc

Thu, 09 Feb 2017 19:00:50 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 09 Feb 2017 19:00:50 -0500
changeset 509
14ac01e21c51
parent 508
b4f827c47130
child 512
da2cf0c3d734
permissions
-rw-r--r--

in-place write for crontabs

#!/bin/bash

VIRT='no'

if [ "$(uname -s)" = "OpenBSD" ]; then
  PATH="/usr/X11R6/bin:$PATH"
fi

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

xcompmgr -n &>/dev/null </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
  xautolock -detectsleep &
  pulseaudio --daemonize
  nm-applet &>/dev/null </dev/null &
fi

mercurial