@ -29,19 +29,48 @@ then
"$STARTW_ROOT"/addts >> "$STARTW_LOG_FILE" &
"$STARTW_ROOT"/addts >> "$STARTW_LOG_FILE" &
fi
fi
#
# APPLY USER CONFIG
#
# The conf folder contains two subfolders home
# and config, everything in the home folder will
# be symlinked to $HOME as a hidden file/folder,
# whereas everything in the config folder will be
# symlinked to $HOME/.config as-is
# Dotfiles in these folder will be ignored
for f in "$DOTS_ROOT"/home/* ; do
# If the filename already exists and it is not a link override it
if [ -e "$HOME/.$(basename "$f")" ]; then
if [ ! -L "$HOME/.$(basename "$f")" ]; then
rm -rf "$HOME/.$(basename "$f")"
fi
fi
ln -sf "$f" "$HOME/.$(basename "$f")"
done
for f in "$DOTS_ROOT"/config/* ; do
# If the filename already exists and it is not a link override it
if [ -e "$HOME/.config/$(basename "$f")" ]; then
if [ ! -L "$HOME/.config/$(basename "$f")" ]; then
rm -rf "$HOME/.config/$(basename "$f")"
fi
fi
ln -sf "$f" "$HOME/.config/"
done
#
#
# SET ENVIRONMENT VARIABLES
# SET ENVIRONMENT VARIABLES
#
#
# Enable wayland native support
# Enable wayland native support
export _JAVA_AWT_WM_NONREPARENTING=1
export _JAVA_AWT_WM_NONREPARENTING=1
export MOZ_ENABLE_WAYLAND=1
# export MOZ_ENABLE_WAYLAND=1
export SDL_VIDEODRIVER=wayland
export SDL_VIDEODRIVER=wayland
export QT_QPA_PLATFORM=wayland-egl
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_FORCE_DPI=physical
export QT_WAYLAND_FORCE_DPI=physical
export BEMENU_BACKEND=wayland
export BEMENU_BACKEND=wayland
# Do NOT uncomment this, breaks stuff
# export GDK_BACKEND=wayland
# Set the hardware acceleration driver
# Set the hardware acceleration driver
export LIBVA_DRIVER_NAME=vdpau
export LIBVA_DRIVER_NAME=vdpau
# Set the default interface used by wpa_cli
# Set the default interface used by wpa_cli
@ -56,14 +85,7 @@ export XDG_CURRENT_DESKTOP=Unity
export XDG_DATA_HOME=$HOME/.local/share
export XDG_DATA_HOME=$HOME/.local/share
export XDG_CACHE_HOME=$HOME/.cache
export XDG_CACHE_HOME=$HOME/.cache
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DESKTOP_DIR="$HOME/Desktop"
xdg-user-dirs &
export XDG_DOCUMENTS_DIR="$HOME/Documents"
export XDG_DOWNLOAD_DIR="$HOME/Downloads"
export XDG_MUSIC_DIR="$HOME/Music"
export XDG_PICTURES_DIR="$HOME/Pictures"
export XDG_PUBLICSHARE_DIR="$HOME/Public"
export XDG_TEMPLATES_DIR="$HOME/Templates"
export XDG_VIDEOS_DIR="$HOME/Videos"
# Clean home directory
# Clean home directory
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export ATOM_HOME="$XDG_DATA_HOME"/atom
export ATOM_HOME="$XDG_DATA_HOME"/atom
@ -72,36 +94,16 @@ export CARGO_HOME="$XDG_DATA_HOME"/cargo
# Set user script dir
# Set user script dir
export SCRIPT_DIR="$XDG_CONFIG_HOME"/scripts
export SCRIPT_DIR="$XDG_CONFIG_HOME"/scripts
#
# Do NOT uncomment this, breaks stuff
# APPLY USER CONFIG
# export GDK_BACKEND=wayland
#
# export XDG_DESKTOP_DIR="$HOME/Desktop"
# export XDG_DOCUMENTS_DIR="$HOME/Documents"
# The conf folder contains two subfolders home
# export XDG_DOWNLOAD_DIR="$HOME/Downloads"
# and config, everything in the home folder will
# export XDG_MUSIC_DIR="$HOME/Music"
# be symlinked to $HOME as a hidden file/folder,
# export XDG_PICTURES_DIR="$HOME/Pictures"
# whereas everything in the config folder will be
# export XDG_PUBLICSHARE_DIR="$HOME/Public"
# symlinked to $HOME/.config as-is
# export XDG_TEMPLATES_DIR="$HOME/Templates"
# Dotfiles in these folder will be ignored
# export XDG_VIDEOS_DIR="$HOME/Videos"
for f in "$DOTS_ROOT"/home/* ; do
# If the filename already exists and it is not a link override it
if [ -e "$HOME/.$(basename "$f")" ]; then
if [ ! -L "$HOME/.$(basename "$f")" ]; then
rm -rf "$HOME/.$(basename "$f")"
fi
fi
ln -sf "$f" "$HOME/.$(basename "$f")"
done
for f in "$DOTS_ROOT"/config/* ; do
# If the filename already exists and it is not a link override it
if [ -e "$HOME/.config/$(basename "$f")" ]; then
if [ ! -L "$HOME/.config/$(basename "$f")" ]; then
rm -rf "$HOME/.config/$(basename "$f")"
fi
fi
ln -sf "$f" "$HOME/.config/"
done
#
#
# LAUNCH APPLICATIONS
# LAUNCH APPLICATIONS