Script support for monitors

This commit is contained in:
Frank Villaro-Dixon 2013-06-04 18:14:19 +02:00
parent 8318f2283e
commit 3482362e54
4 changed files with 34 additions and 8 deletions

View file

@ -9,6 +9,7 @@ ln -s $WAI/bashrc ./.bashrc
ln -s $WAI/vimrc ./.vimrc ln -s $WAI/vimrc ./.vimrc
ln -s $WAI/gitconfig ./.gitconfig ln -s $WAI/gitconfig ./.gitconfig
ln -s $WAI/xinitrc ./.xinitrc ln -s $WAI/xinitrc ./.xinitrc
ln -s $WAI/monitor.sh ./monitor.sh
#SSH #SSH

25
monitor.sh Executable file
View file

@ -0,0 +1,25 @@
#!/bin/bash
if [ $# -lt 1 ]
then
echo "Usage : $0 [dual|extern|laptop]"
exit
fi
case "$1" in
"dual")
xrandr --output LVDS1 --auto --rotate normal --pos 0x0 \
--output VGA1 --auto --rotate normal --right-of LVDS1
;;
"laptop")
xrandr --output LVDS1 --auto --rotate normal --pos 0x0 \
--output VGA1 --off
;;
"extern")
xrandr --output LVDS1 --off \
--output VGA1 --auto --rotate normal
;;
esac

View file

@ -1,7 +1,7 @@
/** /**
* <+FILENAME+> - <+DESC+> ** <+FILENAME+> - <+DESC+>
* **
* (C) 2010 - Gillieron Kevin <kevin.gillieron@gw-computing.net> ** (C) 2013 - Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>
*/ */
#include <stdio.h> #include <stdio.h>

View file

@ -1,7 +1,7 @@
/** /**
* <+FILENAME+> - <+DESC+> ** <+FILENAME+> - <+DESC+>
* **
* (C) 2010 - Gillieron Kevin <kevin.gillieron@gw-computing.net> ** (C) 2013 - Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>
*/ */
#ifndef <+HEADERNAME+> #ifndef <+HEADERNAME+>