blob: 36bb5032ad4a11c8a548aad215f4ea5ec738a3eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
export XDG_RUNTIME_DIR=/tmp/xdg-runtime-$(id -u)
mkdir -p $XDG_RUNTIME_DIR
chmod 0700 $XDG_RUNTIME_DIR
export QT_SCALE_FACTOR=1
export GBM_BACKEND=nvidia-drm
export LIBVA_DRIVER_NAME=nvidia
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export QT_QPA_PLATFORMTHEME=qt6ct
export XDG_SESSION_TYPE=wayland
export MOZ_ENABLE_WAYLAND=1
export GDK_BACKEND=wayland
export WLR_NO_HARDWARE_CURSORS=1
export XDG_CURRENT_DESKTOP=wlr
export XDG_SESSION_DESKTOP=wlr
export SDL_VIDEODRIVER=wayland
export CLUTTER_BACKEND=wayland
export ELECTRON_OZONE_PLATFORM_HINT=auto
export EDITOR=nvim
export SUDO=doas
export __GL_THREADED_OPTIMIZATIONS=0
gpg-connect-agent updatestartuptty /bye >/dev/null
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
mkfifo $XDG_RUNTIME_DIR/statuspipe
someblocks -p > $XDG_RUNTIME_DIR/statuspipe &
dbus-run-session dwl -s '$XDG_CONFIG_HOME/dwl/autostart &> /dev/null' < $XDG_RUNTIME_DIR/statuspipe
killall someblocks
rm $XDG_RUNTIME_DIR/statuspipe
|