2022-12-01 22:58:26 +03:00
|
|
|
echo -e "\n<--##Tahinli Resolution Script##-->\n"
|
2022-12-11 21:20:41 +03:00
|
|
|
echo " 1- Join- Second_Vertical"
|
|
|
|
echo " 2- Join- Linear_Extended"
|
|
|
|
echo " 3- Mirror"
|
|
|
|
echo " 4- First Monitor Only"
|
|
|
|
echo " 5- Second Monitor Only"
|
2023-02-02 16:08:43 +03:00
|
|
|
echo " 6- Seconf Monitor Only-Vertical"
|
2022-12-01 02:53:23 +03:00
|
|
|
read selection
|
2022-12-08 00:11:45 +03:00
|
|
|
if [[ $selection > 0 ]] && [[ $selection < 7 ]];
|
2022-12-01 22:58:26 +03:00
|
|
|
then
|
|
|
|
echo " --->Request's Accepted-|"
|
|
|
|
xrandr --output HDMI-0 --off
|
|
|
|
xrandr --output eDP-1-1 --off
|
|
|
|
fi
|
2022-12-01 02:53:23 +03:00
|
|
|
case $selection in
|
2023-02-02 16:08:43 +03:00
|
|
|
1)xrandr --output eDP-1-1 --mode 1920x1080 --left-of HDMI-0 -r 144 --rotate normal --primary
|
2022-12-03 17:52:35 +03:00
|
|
|
xrandr --output HDMI-0 --mode 1920x1080 --right-of eDP-1-1 -r 75 --rotate right;;
|
2023-02-02 16:08:43 +03:00
|
|
|
2)xrandr --output eDP-1-1 --mode 1920x1080 --left-of HDMI-0 -r 144 --rotate normal --primary
|
2022-12-03 17:52:35 +03:00
|
|
|
xrandr --output HDMI-0 --mode 1920x1080 --right-of eDP-1-1 -r 75 --rotate normal;;
|
2023-02-02 16:08:43 +03:00
|
|
|
3)xrandr --output eDP-1-1 --mode 1920x1080 -r 144 --rotate normal --primary
|
2022-12-01 22:58:26 +03:00
|
|
|
xrandr --output HDMI-0 --mode 1920x1080 -r 75 --rotate normal;;
|
2023-02-02 16:08:43 +03:00
|
|
|
4)xrandr --output eDP-1-1 --mode 1920x1080 -r 144 --rotate normal --primary;;
|
2022-12-03 17:39:14 +03:00
|
|
|
5)xrandr --output HDMI-0 --mode 1920x1080 -r 75 --rotate normal;;
|
2022-12-08 00:11:45 +03:00
|
|
|
6)xrandr --output HDMI-0 --mode 1920x1080 -r 75 --rotate right;;
|
2022-12-01 02:53:23 +03:00
|
|
|
*)echo "------Invalid Selection";;
|
|
|
|
esac
|
2022-12-01 22:58:26 +03:00
|
|
|
echo -e "\n # DONE #"
|
2022-12-01 02:53:23 +03:00
|
|
|
|