bash unnecessary

Sat, 11 Feb 2017 16:59:48 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 11 Feb 2017 16:59:48 -0500
changeset 512
da2cf0c3d734
parent 511
f175eea7ad19
child 513
a8caf462bfc0

bash unnecessary

.xsessionrc file | annotate | diff | comparison | revisions
--- a/.xsessionrc
+++ b/.xsessionrc
@@ -1,15 +1,16 @@
-#!/bin/bash
+#!/bin/sh
 
+PLATFORM="$(uname -s)"
 VIRT='no'
 
-if [ "$(uname -s)" = "OpenBSD" ]; then
+if [ "$PLATFORM" = "OpenBSD" ]; then
   PATH="/usr/X11R6/bin:$PATH"
 fi
 
-hsetroot -solid "#002244" &>/dev/null || \
+hsetroot -solid "#002244" >/dev/null 2>&1 || \
   xsetroot -def -solid "#002244"
 
-xcompmgr -n &>/dev/null </dev/null &
+xcompmgr -n >/dev/null 2>&1 </dev/null &
 
 xmodmap ~/.xmodmaprc
 
@@ -28,9 +29,9 @@ fi
 if [ "$VIRT" = "yes" ]; then
   xset b off -dpms s off
 else
-  xset b off
+  xset b off s 6 dpms standby 6
   xautolock -detectsleep &
   pulseaudio --daemonize
-  nm-applet &>/dev/null </dev/null &
+  nm-applet >/dev/null 2>&1 </dev/null &
 fi
 

mercurial