.xsessionrc

Sun, 20 Oct 2019 01:18:33 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 20 Oct 2019 01:18:33 -0500
changeset 812
d62e41b99428
parent 617
595c6f803258
child 823
da66fb550c74
permissions
-rw-r--r--

Not working as expected

#!/bin/sh

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

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

make -s -C ~/.i3 || {
  cat ~/.i3/config.d/* > ~/.i3/config
  cat ~/.i3/status.d/* > ~/.i3/status
}

hsetroot -solid "#002244" ||
  xsetroot -def -solid "#002244"

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

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

xcompmgr -n &

urxvtd -o &

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=no &
  nm-applet &
fi

jobs >&2

mercurial