2023-10-21 13:44:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cd "$HOME" || exit 1
|
|
|
|
|
2023-10-29 14:25:32 +00:00
|
|
|
# Session settings
|
2023-10-25 11:20:57 +00:00
|
|
|
export XDG_CURRENT_DESKTOP=sway
|
|
|
|
export XDG_SESSION_DESKTOP=sway
|
2023-10-29 14:25:32 +00:00
|
|
|
export XDG_SESSION_TYPE=wayland
|
|
|
|
export EGL_PLATFORM=wayland
|
2023-10-21 13:44:39 +00:00
|
|
|
export SDL_VIDEODRIVER=wayland
|
2023-10-29 14:25:32 +00:00
|
|
|
export CLUTTER_PLATFORM=wayland
|
|
|
|
export QT_QPA_PLATFORM=wayland
|
|
|
|
export QT_STYLE_OVERRIDE=kvantum
|
2023-10-21 13:44:39 +00:00
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
2023-10-29 14:25:32 +00:00
|
|
|
export XKB_DEFAULT_LAYOUT=us
|
2023-10-21 13:44:39 +00:00
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
2023-10-29 14:25:32 +00:00
|
|
|
export MOZ_WAYLAND_USE_VAAPI=1
|
|
|
|
export MOZ_DISABLE_RDD_SANDBOX=1
|
2023-10-21 13:44:39 +00:00
|
|
|
|
2023-10-29 14:25:32 +00:00
|
|
|
# Clean home
|
2023-10-21 13:44:39 +00:00
|
|
|
export W3M_DIR="$XDG_DATA_HOME/w3m"
|
|
|
|
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
|
|
|
|
export WGETRC="$HOME/.config/wget/wgetrc"
|
|
|
|
export INPUTRC="$HOME/.config/inputrc"
|
2023-10-29 14:25:32 +00:00
|
|
|
export GNUPGHOME="$HOME/.local/share/gnupg"
|
2023-10-21 13:44:39 +00:00
|
|
|
export LESSHISTFILE=-
|
|
|
|
if [ ! -d "$HOME/.config/wget/" ] && [ ! -d "$GNUPGHOME" ]; then
|
|
|
|
mkdir -p "$HOME/.config/wget/" "$GNUPGHOME"
|
|
|
|
fi
|
|
|
|
|
2023-10-29 14:25:32 +00:00
|
|
|
# Home folders
|
2023-10-21 13:44:39 +00:00
|
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
|
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
2023-10-29 14:25:32 +00:00
|
|
|
|
|
|
|
# Sanely export XDG Base dir variables
|
|
|
|
eval "$(sed 's/^[^#].*/export &/g;t;d' ~/.config/user-dirs.dirs)"
|
|
|
|
|
|
|
|
# Theme settings
|
|
|
|
export GTK_THEME=gruvbox-dark-gtk
|
|
|
|
export GTK_ICON_THEME=gruvbox-dark-icons-gtk
|
|
|
|
export GTK_CURSOR_THEME=Simp1e-Gruvbox-Dark
|
|
|
|
export XCURSOR_THEME=Simp1e-Gruvbox-Dark
|
|
|
|
export XCURSOR_PATH="$HOME/.icons"
|
|
|
|
|
|
|
|
# User defined enviroment variables
|
2023-10-21 13:44:39 +00:00
|
|
|
export EDITOR="$HOME/.local/bin/lvim"
|
2023-10-29 14:25:32 +00:00
|
|
|
export VISUAL="$HOME/.local/bin/neovide"
|
|
|
|
export BROWSER=qutebrowser
|
|
|
|
export VIEWER=zathura
|
2023-10-25 11:20:57 +00:00
|
|
|
export RUNNER="fuzzel --dmenu"
|
2023-10-29 14:25:32 +00:00
|
|
|
export TERM=wezterm
|
|
|
|
export WM=sway
|
2023-10-21 13:44:39 +00:00
|
|
|
|
2023-10-29 14:25:32 +00:00
|
|
|
# Start compositor
|
2023-10-25 11:20:57 +00:00
|
|
|
dbus-launch $WM
|