Auto Setup $DISPLAY pointing to connecting client machine

HOST=$(who -mR |awk -F\( '{print $NF}' |awk -F\) '{print $1}')
export HOST
DISPLAY=$HOST:0.0
export DISPLAY

Comments

Popular posts from this blog

How to recalibrate your Samsung Note 4 battery

How to import Tasker projects, profiles, tasks and scenes

How to turn your Windows 7 laptop or dekstop into a WiFi repeater or extender