xrandr.sh
public shellscript v1 · immutable#!/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