home/Bin/screen_layout.sh
2017-07-22 13:51:03 +02:00

17 lines
361 B
Bash
Executable file

#!/bin/bash
activeconfig='hdmi'
if [ -f ~/.screenlayout.info ] ; then
activeconfig=`cat ~/.screenlayout.info`
fi
if [ ${activeconfig} == 'lvds1' ] ; then
~/.screenlayout/dp.sh
echo dp > ~/.screenlayout.info
else
~/.screenlayout/lvds1.sh
echo lvds1 > ~/.screenlayout.info
fi
fbsetbg -a `tail -n 1 .fluxbox/lastwallpaper|cut -d'|' -f 2`