#!/bin/bash

# Make sure this is before the 'exec' command or it won't be sourced.
[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile
[ -f ~/.Xresources ] && xrdb -merge -I$HOME ~/.Xresources

# OPTIMUS SHITS
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

export _JAVA_AWT_WM_NONREPARENTING=1

eval "$(dbus-launch --sh-syntax --exit-with-session)"

#feh --bg-center "$HOME/Pictures/bg.png" &
feh --bg-scale "$HOME/Pictures/bg.png" &

xautolock -locker lock-us -secure -time 1 &

#pipewire &

dbus-run-session pipewire &
pipewire-pulse &
#wireplumber &

dwmblocks &

#clipmenud &

#mpd --no-daemon &

#pw-metadata -n settings 0 clock.force-rate 44100
#pw-metadata -n settings 0 clock.force-quantum 1024

dbus-launch --sh-syntax --exit-with-session dwm
#exec dwm

