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