/[magellan-source]/trunk/mlivecdbuild/profiles/samsung-nc10-i686-svn/custom-files/fn-keys/screen-switch.sh |
Contents of /trunk/mlivecdbuild/profiles/samsung-nc10-i686-svn/custom-files/fn-keys/screen-switch.sh
Parent Directory | Revision Log
Revision 963 -
(show annotations)
(download)
(as text)
Wed Jan 27 16:14:08 2010 UTC (14 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 616 byte(s)
Wed Jan 27 16:14:08 2010 UTC (14 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 616 byte(s)
-nc10 profile
1 | #!/bin/sh |
2 | |
3 | echo x >> /tmp/screen-switch.state |
4 | STATE=$(grep -c x /tmp/screen-switch.state) |
5 | VGA_STATE=$(xrandr | grep "VGA" | gawk '{ print $2 }') |
6 | |
7 | if [ "$STATE" == "1" ] && [ "$VGA_STATE" == "connected" ]; then |
8 | xrandr --output LVDS --mode 1024x600 --output VGA --mode 1024x768 |
9 | elif [ "$STATE" == "2" ] && [ "$VGA_STATE" == "connected" ]; then |
10 | xrandr --output LVDS --off --output VGA --mode 1024x768 |
11 | elif [ "$STATE" == "3" ]; then |
12 | xrandr --output LVDS --mode 1024x600 --output VGA --off |
13 | rm /tmp/screen-switch.state |
14 | else |
15 | kdialog --sorry "Es ist kein externer Monitor angeschlossen" |
16 | rm /tmp/screen-switch.state |
17 | fi |
Properties
Name | Value |
---|---|
svn:executable | * |
svn:keywords | Id |