57 lines
1.6 KiB
Bash
Executable file
57 lines
1.6 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
cd "$HOME" || exit 1
|
|
|
|
# session settings
|
|
export XDG_CURRENT_DESKTOP=dwl
|
|
export XDG_SESSION_TYPE=wayland
|
|
export XDG_SESSION_DESKTOP=dwl
|
|
export GTK_IM_MODULE=fcitx
|
|
export QT_IM_MODULE=fcitx
|
|
export XMODIFIERS=@im=fcitx
|
|
export SDL_IM_MODULE=fcitx
|
|
export GLFW_IM_MODULE=ibus
|
|
export QT_STYLE_OVERRIDE=kvantum
|
|
export QT_QPA_PLATFORM=wayland
|
|
export GDK_BACKEND=wayland
|
|
export SDL_VIDEODRIVER=wayland
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
export XKB_DEFAULT_LAYOUT="us"
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
# clean home
|
|
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"
|
|
export LESSHISTFILE=-
|
|
if [ ! -d "$HOME/.config/wget/" ] && [ ! -d "$GNUPGHOME" ]; then
|
|
mkdir -p "$HOME/.config/wget/" "$GNUPGHOME"
|
|
fi
|
|
|
|
# home folders
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
export LOGDIR="$XDG_CACHE_HOME/dwl"
|
|
export XDG_DESKTOP_DIR="$HOME/Desktop"
|
|
export XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
|
export XDG_TEMPLATES_DIR="$HOME/Templates"
|
|
export XDG_PUBLICSHARE_DIR="$HOME/Public"
|
|
export XDG_DOCUMENTS_DIR="$HOME/Documents"
|
|
export XDG_MUSIC_DIR="$HOME/Music"
|
|
export XDG_PICTURES_DIR="$HOME/Pictures"
|
|
export XDG_VIDEOS_DIR="$HOME/Videos"
|
|
if [ ! -d "$LOGDIR" ]; then
|
|
mkdir -p "$LOGDIR"
|
|
fi
|
|
|
|
# user defined enviroment variables
|
|
export WM=dwl
|
|
export EDITOR="$HOME/.local/bin/lvim"
|
|
export VISUAL="$HOME/.local/bin/lvim"
|
|
export BROWSER="firefox"
|
|
export VIEWER="zathura"
|
|
|
|
# start dwl
|
|
dbus-launch dwl | tee "$LOGDIR"/dwl.log
|