mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-28 18:28:35 -05:00
12e151d3e1
- startwl: move `chmod` out of if statement (ensure $XDG_RUNTIME_DIR properly has 0700 permission) - doas: add Void specified config - nftables: add note for future changes to block rules - grub: disable submenu
32 lines
968 B
Bash
Executable File
32 lines
968 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Start user dbus session alongside a Wayland compositor
|
|
|
|
# In case of using seatd (need the user to be in _seatd group)
|
|
# Flatpak apps will not work because of hardcoded /run/user/$UID
|
|
if [ -z "${XDG_RUNTIME_DIR}" ]
|
|
then
|
|
userid=$(id -u ${USER})
|
|
export XDG_RUNTIME_DIR="$(mktemp -d /tmp/${userid}-runtime-XXXXXX)"
|
|
[ ! -d "${XDG_RUNTIME_DIR}" ] && mkdir -p "${XDG_RUNTIME_DIR}"
|
|
chmod 0700 "${XDG_RUNTIME_DIR}"
|
|
fi
|
|
|
|
# Valid values: seatd, logind
|
|
# export LIBSEAT_BACKEND=seatd
|
|
|
|
export XDG_SESSION_TYPE=wayland
|
|
export QT_QPA_PLATFORM=wayland-egl
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
export CLUTTER_BACKEND=wayland
|
|
export ELM_DISPLAY=wl
|
|
# SDL - not working for most games
|
|
#export SDL_VIDEODRIVER=wayland
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
export PATH=$HOME/.local/bin/Wayland:$PATH
|
|
|
|
export XDG_CURRENT_DESKTOP="$1"
|
|
# $HOME/.config/emacs-config/doom/bin/doom env
|
|
exec dbus-run-session "$@" > "${XDG_RUNTIME_DIR}/$1-$(date "+%Y-%m-%d").log" 2>&1
|