home/Bin/screen_layout.sh

18 lines
361 B
Bash
Raw Normal View History

2017-07-22 13:46:47 +02:00
#!/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`