neodotfiles/user/.config/sway/winitrc

55 lines
1.5 KiB
Text
Raw Normal View History

2023-10-21 13:44:39 +00:00
#!/bin/sh
cd "$HOME" || exit 1
# session settings
2023-10-25 11:20:57 +00:00
export XDG_CURRENT_DESKTOP=sway
2023-10-21 13:44:39 +00:00
export XDG_SESSION_TYPE=wayland
2023-10-25 11:20:57 +00:00
export XDG_SESSION_DESKTOP=sway
2023-10-21 13:44:39 +00:00
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"
2023-10-22 12:18:23 +00:00
export XDG_DESKTOP_DIR="$HOME/var/desktop"
export XDG_DOWNLOAD_DIR="$HOME/var/downloads"
export XDG_TEMPLATES_DIR="$HOME/media/templates"
export XDG_PUBLICSHARE_DIR="$HOME/var/public"
export XDG_DOCUMENTS_DIR="$HOME/media/documents"
export XDG_MUSIC_DIR="$HOME/media/music"
export XDG_PICTURES_DIR="$HOME/media/pictures"
export XDG_VIDEOS_DIR="$HOME/media/videos"
2023-10-21 13:44:39 +00:00
# user defined enviroment variables
2023-10-25 11:20:57 +00:00
export WM="sway"
2023-10-21 13:44:39 +00:00
export EDITOR="$HOME/.local/bin/lvim"
export VISUAL="$HOME/.local/bin/lvim"
2023-10-25 11:20:57 +00:00
export BROWSER="qutebrowser"
2023-10-21 13:44:39 +00:00
export VIEWER="zathura"
2023-10-25 11:20:57 +00:00
export RUNNER="fuzzel --dmenu"
2023-10-21 13:44:39 +00:00
# start dwl
2023-10-25 11:20:57 +00:00
dbus-launch $WM