X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/blobdiff_plain/24c23c06fe8e825733cad65307aaf1ff16beb1ab..0ef958766a7e652d35981030d9a7c991ee71c9fd:/xorg-xinit/.xinitrc diff --git a/xorg-xinit/.xinitrc b/xorg-xinit/.xinitrc old mode 100644 new mode 100755 index a8ad133..12e77cc --- a/xorg-xinit/.xinitrc +++ b/xorg-xinit/.xinitrc @@ -1,3 +1,4 @@ +#!/bin/sh if [ -d /etc/X11/xinit/xinitrc.d ] ; then for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do [ -x "$f" ] && . "$f" @@ -7,7 +8,7 @@ fi # Effectively disable DPMS by setting values to 0 as laptop screen does not resume # Use standard blank screen saver after 5 minutes -export DISPLAY=:0.0 +#export DISPLAY=:0.0 xset s 300 xset s blank xset dpms 0 0 0 @@ -47,6 +48,20 @@ xsetroot -solid "#333333" # Enable core dumps in case something goes wrong ulimit -c unlimited +# Append "$1" to $PATH when not already in. +append_path () { + case ":$PATH:" in + *:"$1":*) + ;; + *) + PATH="${PATH:+$PATH:}$1" + esac +} + +# Append our default paths +append_path '/home/frederik/scripts' + # Start i3 and log to ~/.i3logfile echo "Starting at $(date)" >> ~/.i3logfile -exec /usr/bin/i3 -V -d all >> ~/.i3logfile +#exec /usr/bin/i3 +exec startxfce4