#!/bin/bash

#First, configure stuff with xrandr
#Get user path
[[ $(who) != "" ]] && USER=$(who | grep :0\) | cut -f 1 -d ' ') || \
USER=$(echo /home/* | cut -f 3 -d '/')

export DISPLAY=:0.0
export XAUTHORITY=/home/$USER/.Xauthority