Browse Source

change way to run x

pull/1/head
10sr 12 years ago
parent
commit
8dbe89fd4e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      bashrc

+ 2
- 1
bashrc View File

@@ -108,6 +108,7 @@ alias p="$PAGER"
alias c=cat alias c=cat
alias pcalc="python -i -c 'from math import *' " alias pcalc="python -i -c 'from math import *' "
alias py3=python3 alias py3=python3
alias py2=python2
alias _reloadrc="test -f ~/.bashrc && source ~/.bashrc" alias _reloadrc="test -f ~/.bashrc && source ~/.bashrc"
alias sudo="sudo " # use aliases through sudo alias sudo="sudo " # use aliases through sudo
alias e3=e3em alias e3=e3em
@@ -166,7 +167,7 @@ showinfo(){


x(){ x(){
if [[ -z $DISPLAY ]] && ! [[ -e /tmp/.X11-unix/X0 ]] && (( EUID )); then if [[ -z $DISPLAY ]] && ! [[ -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
exec nohup startx # >~/.backup/log/xorg.log 2>&1 &
nohup startx # >~/.backup/log/xorg.log 2>&1 &
else else
echo "X cant be started! Maybe another X is already running!" 1>&2 echo "X cant be started! Maybe another X is already running!" 1>&2
fi fi


Loading…
Cancel
Save