Script support for monitors
This commit is contained in:
parent
8318f2283e
commit
3482362e54
|
@ -9,6 +9,7 @@ ln -s $WAI/bashrc ./.bashrc
|
|||
ln -s $WAI/vimrc ./.vimrc
|
||||
ln -s $WAI/gitconfig ./.gitconfig
|
||||
ln -s $WAI/xinitrc ./.xinitrc
|
||||
ln -s $WAI/monitor.sh ./monitor.sh
|
||||
|
||||
|
||||
#SSH
|
||||
|
|
25
monitor.sh
Executable file
25
monitor.sh
Executable 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
|
|
@ -1,8 +1,8 @@
|
|||
/**
|
||||
* <+FILENAME+> - <+DESC+>
|
||||
*
|
||||
* (C) 2010 - Gillieron Kevin <kevin.gillieron@gw-computing.net>
|
||||
*/
|
||||
** <+FILENAME+> - <+DESC+>
|
||||
**
|
||||
** (C) 2013 - Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/**
|
||||
* <+FILENAME+> - <+DESC+>
|
||||
*
|
||||
* (C) 2010 - Gillieron Kevin <kevin.gillieron@gw-computing.net>
|
||||
*/
|
||||
** <+FILENAME+> - <+DESC+>
|
||||
**
|
||||
** (C) 2013 - Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>
|
||||
*/
|
||||
|
||||
#ifndef <+HEADERNAME+>
|
||||
#define <+HEADERNAME+>
|
||||
|
|
Loading…
Reference in a new issue