.xsessionrc

Sat, 08 Apr 2023 18:06:43 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 08 Apr 2023 18:06:43 -0400
changeset 1104
90aa391abc44
parent 823
da66fb550c74
permissions
-rw-r--r--

include needs to appear before a host match (sections actually ignore indents)

#!/bin/sh

PLATFORM="$(uname -s)"

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

if lspci | grep -q VirtualBox; then
  xset b off -dpms s off
else
  xset b off s 300 dpms 360
  xautolock -detectsleep &
  pulseaudio --daemonize=no &
  nm-applet &
fi

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

jobs -l >&2

mercurial