#!/bin/sh

#setwall &

if [ $(envycontrol -q) = "nvidia" ]; then
    xrandr --setprovideroutputsource modesetting NVIDIA-0
    xrandr --auto
    xrandr --dpi 96
fi

# xwallpaper --zoom ~/.local/share/wallpaper3.jpg
# xwallpaper --zoom $(find .local/share/wallpapers -type f | shuf -n 1)
xwallpaper --zoom $(find pix/wallpapers -type f | grep "jpg" | shuf -n 1)
xcompmgr &
xset r rate 300 50
xrandr -r 60.00
unclutter &
dwmblocks &
dunst &
backlight_control 20 &
redshift &
# exec dwm > /dev/null 2>&1
while type dwm > /dev/null ; do dwm && continue || break ; done
