Update prefres.sh
Reset's added
This commit is contained in:
parent
fd83082e57
commit
07851f84a1
1 changed files with 17 additions and 7 deletions
24
prefres.sh
24
prefres.sh
|
@ -1,14 +1,24 @@
|
||||||
echo "<--##Tahinli Resolution Script##-->"
|
echo -e "\n<--##Tahinli Resolution Script##-->\n"
|
||||||
echo " 1- Standart Resolution"
|
echo " 1- Standart Resolution"
|
||||||
echo " 2- First Monitor Only"
|
echo " 2- Mirror"
|
||||||
echo " 3- Second Monitor Only"
|
echo " 3- First Monitor Only"
|
||||||
|
echo " 4- Second Monitor Only"
|
||||||
read selection
|
read selection
|
||||||
|
if [[ $selection > 0 ]] && [[ $selection < 5 ]];
|
||||||
|
then
|
||||||
|
echo " --->Request's Accepted-|"
|
||||||
|
xrandr --output HDMI-0 --off
|
||||||
|
xrandr --output eDP-1-1 --off
|
||||||
|
fi
|
||||||
case $selection in
|
case $selection in
|
||||||
1)xrandr --output HDMI-0 --mode 1920x1080 --right-of eDP-1-1 -r 75 --rotate right
|
1)
|
||||||
|
xrandr --output HDMI-0 --mode 1920x1080 --right-of eDP-1-1 -r 75 --rotate right
|
||||||
xrandr --output eDP-1-1 --mode 1920x1080 --left-of HDMI-0 -r 144 --rotate normal;;
|
xrandr --output eDP-1-1 --mode 1920x1080 --left-of HDMI-0 -r 144 --rotate normal;;
|
||||||
2)xrandr --output HDMI-0 --off;;
|
2)xrandr --output eDP-1-1 --mode 1920x1080 -r 144 --rotate normal
|
||||||
3)xrandr --output HDMI-0 --mode 1920x1080 --right-of eDP-1-1 -r 75 --rotate normal
|
xrandr --output HDMI-0 --mode 1920x1080 -r 75 --rotate normal;;
|
||||||
xrandr --output eDP-1-1 --off;;
|
3)xrandr --output eDP-1-1 --mode 1920x1080 -r 144 --rotate normal;;
|
||||||
|
4)xrandr --output HDMI-0 --mode 1920x1080 -r 75 --rotate normal;;
|
||||||
*)echo "------Invalid Selection";;
|
*)echo "------Invalid Selection";;
|
||||||
esac
|
esac
|
||||||
|
echo -e "\n # DONE #"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue