clean up

Fri, 15 Nov 2019 23:03:46 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 15 Nov 2019 23:03:46 -0500
changeset 823
da66fb550c74
parent 822
63a61745e560
child 824
7f5db423524e

clean up

.xsessionrc file | annotate | diff | comparison | revisions
--- a/.xsessionrc
+++ b/.xsessionrc
@@ -1,7 +1,6 @@
 #!/bin/sh
 
 PLATFORM="$(uname -s)"
-VIRT='no'
 
 if [ "$PLATFORM" = "OpenBSD" ]; then
   PATH="/usr/X11R6/bin:$PATH"
@@ -24,15 +23,7 @@ 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
+if lspci | grep -q VirtualBox; then
   xset b off -dpms s off
 else
   xset b off s 300 dpms 360
@@ -41,5 +32,9 @@ else
   nm-applet &
 fi
 
-jobs >&2
+if [ -r ~/.xsessionrc.local ]; then
+  . ~/.xsessionrc.local
+fi
 
+jobs -l >&2
+

mercurial