Fixes for trying to set up profile on OpenBSD

Sun, 19 Oct 2014 01:11:14 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 19 Oct 2014 01:11:14 -0400
changeset 154
72e18304b485
parent 152
69896d410e89
child 155
14fa06532900

Fixes for trying to set up profile on OpenBSD

.xsessionrc file | annotate | diff | comparison | revisions
--- a/.xsessionrc
+++ b/.xsessionrc
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 if [ -d ~/bin ]; then
   export PATH="$HOME/bin:$PATH"
@@ -15,19 +15,20 @@ if [ -d ~/.rbenv ]; then
 fi
 
 
-if [ -x /usr/bin/xcompmgr ]; then
-  /usr/bin/xcompmgr -n &>/dev/null </dev/null &
+if [ "$(uname -s)" = "OpenBSD" ]; then
+  PATH="/usr/X11R6/bin:$PATH"
 fi
 
-/usr/bin/xmodmap ~/.xmodmaprc
+
+xcompmgr -n &>/dev/null </dev/null &
+
+xmodmap ~/.xmodmaprc
 
 if [ -r ~/.Xdefaults.local ]; then
-  /usr/bin/xrdb -quiet -merge -DUSE_LOCAL ~/.Xdefaults
+  xrdb -quiet -merge -DUSE_LOCAL ~/.Xdefaults
 fi
 
-if [ -x /usr/bin/urxvtd ]; then
-  /usr/bin/urxvtd -q -o -f
-fi
+urxvtd -q -o -f
 
 if [ -r ~/.xsessionrc.local ]; then
   . ~/.xsessionrc.local

mercurial