~patrickpichler/dotfiles

db9d8421f2250bb9ee49652aaf9f75dc75b7f2b1 — Patrick Pichler a month ago 89d21d5
[xorg] Add default xorg config

This config will source an env file called `defaults.env` to determine
what screen config to load. That way it should be easier to serve
multiple environments with this setup.
1 files changed, 17 insertions(+), 0 deletions(-)

A .local/bin/default
A .local/bin/default => .local/bin/default +17 -0
@@ 0,0 1,17 @@
#!/usr/bin/env sh

pgrep -f Xorg > /dev/null
RESULT=$?

if [ $RESULT = 0  ]; then
  echo "Xorg already started!"
  exit 1
fi

DEFAULTS="$HOME/screenlayout/defaults.sh"

if [ -f "$DEFAULTS" ]; then
  . "$DEFAULTS"
fi

startx