Advertisement
Guest User

nayttoXmon aparaatti

a guest
Apr 1st, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.72 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Asettaa viewsonicin läppärin näytön oikealle
  4. # puolelle ja asettaa viewsonicin pää näytöksi
  5. # mikäli se on siis kiinni.
  6. ONKO=$(xrandr|grep "VGA1 connected"|awk '{print $1}')
  7.  
  8. echo $ONKO
  9.  
  10. if [ $ONKO == "VGA1" ]
  11.     then
  12.     xrandr --output LVDS1 --mode 1280x800 --output VGA1 --mode 1280x1024 --right-of LVDS1 --primary & wmpid=$!
  13.     trayer --edge top --align right --SetDockType true --expand true --width 3 --tint 0x191970 --height 18 --transparent true &
  14.     wait $wmpid
  15. else
  16.     xrandr --output LVDS1 --mode 1280x800 --primary & wmpid=$!
  17.     trayer --edge top --align right --SetDockType true --expand true --width 6 --tint 0x191970 --height 14 --transparent true &
  18.     wait $wmpid
  19.  
  20. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement