Lots: Abandon hope, move back to i3 config
This commit is contained in:
35
.xinitrc
35
.xinitrc
@@ -1,35 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Salt's .xinitrc
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
die() {
|
||||
if [ -z "$1" ]; then
|
||||
echo "Failed to start session" >&2
|
||||
else
|
||||
echo "Failed to start session: $1" >&2
|
||||
fi
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Set up our session target
|
||||
export FS_DIEONWM=1
|
||||
export XDG_CURRENT_DESKTOP=MATE
|
||||
if [ -x "$HOME/.firestarter/firestarter" ]; then
|
||||
export STARTUP="$HOME/.firestarter/firestarter"
|
||||
elif [ -x "$HOME/Projects/firestarter/firestarter" ]; then
|
||||
export STARTUP="$HOME/Projects/firestarter/firestarter"
|
||||
fi
|
||||
[ -z "$STARTUP" ] && die "No session target available"
|
||||
|
||||
# Execute our target
|
||||
# Yes shellcheck, the rest of the code is an error handler
|
||||
# shellcheck disable=2093
|
||||
exec "$STARTUP"
|
||||
|
||||
# If we get here, we haven't exec'd a target and must die
|
||||
die "Miscellaneous error"
|
||||
|
Reference in New Issue
Block a user