All pastes #1613100 Raw Edit

xrandr.sh

public shellscript v1 · immutable
#1613100 ·published 2009-10-11 18:14 UTC
rendered paste body
#!/bin/shfunction reset_panel() {	killall xfce4-panel	while pgrep xfce4-panel > /dev/null; do		sleep 1	done	xfce4-panel > /dev/null 2>&1 &}case "${1}" innoext)	xrandr --output VGA1 --off --output LVDS1 --auto &&		reset_panel	;;both)	xrandr --output VGA1 --auto --right-of LVDS1 --output LVDS1 --auto &&		reset_panel	;;both-same)	xrandr --output VGA1 --auto --same-as LVDS1 --output LVDS1 --auto &&		reset_panel	;;*)	reset_panel	;;esac