#!/bin/sh

# if you decide to not use something like lightdm 
# this is what ud use!

killall pipewire
killall pipewire-pulse
killall wireplumber
sleep 1

export GTK_USE_PORTAL=0
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
export XDG_PORTAL_BACKEND=wlroots

pipewire &
sleep 1
pipewire-pulse &
wireplumber  &

dbus-update-activation-environment --all \
    DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP SWAYSOCK

exec dbus-run-session sway
