POL_Function_SetResolution

Informations

Creator Message
Tutul

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 44587
Wine: System

Feedbacks

Description

Ask the user for a desired wine desktop resolution.

 

Note: Thanks to lahtis and LinuxScripter for the idea.

Source code

# CHANGELOG
# [?] (201x)
#   Initial writting.
# [Dadu042] (2020-01-02)
#   English fix.

POL_SetupWindow_message "$(eval_gettext 'This script requires a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
 
POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|352 x 288 (4:3) |384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1024 x 768 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1360 x 768 (16:9)|1366 x 768 (16:9)|1536 x 864 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9) |2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|1024 x 600 (~17:10) |2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)" "|"
 
case "$APP_ANSWER" in
    0)
        Set_Desktop "On" "480" "320"
        ;;
    1)
        Set_Desktop "On" "1152" "768"
        ;;
    2)
        Set_Desktop "On" "1280" "854"
        ;;
    3)
        Set_Desktop "On" "1440" "960"
        ;;
    4)
        Set_Desktop "On" "320" "240"
        ;;
    5)
        Set_Desktop "On" "352" "288"
        ;;
    6)
        Set_Desktop "On" "384" "288"
        ;;
    7)
        Set_Desktop "On" "640" "480"
        ;;
    8)
        Set_Desktop "On" "768" "576"
        ;;
    9)
        Set_Desktop "On" "800" "600"
        ;;
    10)
        Set_Desktop "On" "1024" "768"
        ;;
    11)
        Set_Desktop "On" "1152" "864"
        ;;
    12)
        Set_Desktop "On" "1280" "960"
        ;;
    13)
        Set_Desktop "On" "1400" "1050"
        ;;
    14)
        Set_Desktop "On" "1440" "1080"
        ;;
    15)
        Set_Desktop "On" "1600" "1200"
        ;;
    16)
        Set_Desktop "On" "2048" "1536"
        ;;
    17)
        Set_Desktop "On" "800" "480"
        ;;
    18)
        Set_Desktop "On" "1280" "760"
        ;;
    19)
        Set_Desktop "On" "1280" "1024"
        ;;
    20)
        Set_Desktop "On" "2560" "2048"
        ;;
    21)
        Set_Desktop "On" "854" "480"
        ;;
    22)
        Set_Desktop "On" "1024" "576"
        ;;
    23)
        Set_Desktop "On" "1280" "720"
        ;;
    24)
        Set_Desktop "On" "1360" "768"
        ;;
    25)
        Set_Desktop "On" "1366" "768"
        ;;
    26)
        Set_Desktop "On" "1536" "864"
        ;;
    27)
        Set_Desktop "On" "1600" "900"
        ;;
    28)
        Set_Desktop "On" "1920" "1080"
        ;;
    29)
        Set_Desktop "On" "2560" "1440"
        ;;
    30)
        Set_Desktop "On" "3840" "2160"
        ;;
    31)
        Set_Desktop "On" "320" "200"
        ;;
    32)
        Set_Desktop "On" "1280" "800"
        ;;
    33)
        Set_Desktop "On" "1440" "900"
        ;;
    34)
        Set_Desktop "On" "1680" "1050"
        ;;
    35)
        Set_Desktop "On" "1920" "1200"
        ;;
    36)
        Set_Desktop "On" "1024" "600"
        ;;
    37)
        Set_Desktop "On" "2560" "1600"
        ;;
    38)
        Set_Desktop "On" "2560" "1080"
        ;;
    39)
        Set_Desktop "On" "3440" "1440"
        ;;
    40)
        Set_Desktop "On" "2048" "1080"
        ;;
    41)
        Set_Desktop "On" "4096" "2160"
        ;;
    *)
        echo "$(eval_gettext 'Using default resolution')"
        Set_Desktop "On" "800" "600"
        ;;
esac
 
POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab.')" "$TITLE"

Contributions

Filters:

Contribute
Member Message
Dadu042 Saturday 28 March 2020 at 23:13
Dadu042

Information

This update has been approved by the team.

Differences

@@ -4,7 +4,7 @@
 # [Dadu042] (2020-01-02)
 #   English fix.
 
-POL_SetupWindow_message "$(eval_gettext 'These script requires a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
+POL_SetupWindow_message "$(eval_gettext 'This script requires a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
  
 POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|352 x 288 (4:3) |384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1024 x 768 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1360 x 768 (16:9)|1366 x 768 (16:9)|1536 x 864 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9) |2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|1024 x 600 (~17:10) |2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)" "|"
  

New source code

# CHANGELOG
# [?] (201x)
#   Initial writting.
# [Dadu042] (2020-01-02)
#   English fix.

POL_SetupWindow_message "$(eval_gettext 'This script requires a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
 
POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|352 x 288 (4:3) |384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1024 x 768 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1360 x 768 (16:9)|1366 x 768 (16:9)|1536 x 864 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9) |2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|1024 x 600 (~17:10) |2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)" "|"
 
case "$APP_ANSWER" in
    0)
        Set_Desktop "On" "480" "320"
        ;;
    1)
        Set_Desktop "On" "1152" "768"
        ;;
    2)
        Set_Desktop "On" "1280" "854"
        ;;
    3)
        Set_Desktop "On" "1440" "960"
        ;;
    4)
        Set_Desktop "On" "320" "240"
        ;;
    5)
        Set_Desktop "On" "352" "288"
        ;;
    6)
        Set_Desktop "On" "384" "288"
        ;;
    7)
        Set_Desktop "On" "640" "480"
        ;;
    8)
        Set_Desktop "On" "768" "576"
        ;;
    9)
        Set_Desktop "On" "800" "600"
        ;;
    10)
        Set_Desktop "On" "1024" "768"
        ;;
    11)
        Set_Desktop "On" "1152" "864"
        ;;
    12)
        Set_Desktop "On" "1280" "960"
        ;;
    13)
        Set_Desktop "On" "1400" "1050"
        ;;
    14)
        Set_Desktop "On" "1440" "1080"
        ;;
    15)
        Set_Desktop "On" "1600" "1200"
        ;;
    16)
        Set_Desktop "On" "2048" "1536"
        ;;
    17)
        Set_Desktop "On" "800" "480"
        ;;
    18)
        Set_Desktop "On" "1280" "760"
        ;;
    19)
        Set_Desktop "On" "1280" "1024"
        ;;
    20)
        Set_Desktop "On" "2560" "2048"
        ;;
    21)
        Set_Desktop "On" "854" "480"
        ;;
    22)
        Set_Desktop "On" "1024" "576"
        ;;
    23)
        Set_Desktop "On" "1280" "720"
        ;;
    24)
        Set_Desktop "On" "1360" "768"
        ;;
    25)
        Set_Desktop "On" "1366" "768"
        ;;
    26)
        Set_Desktop "On" "1536" "864"
        ;;
    27)
        Set_Desktop "On" "1600" "900"
        ;;
    28)
        Set_Desktop "On" "1920" "1080"
        ;;
    29)
        Set_Desktop "On" "2560" "1440"
        ;;
    30)
        Set_Desktop "On" "3840" "2160"
        ;;
    31)
        Set_Desktop "On" "320" "200"
        ;;
    32)
        Set_Desktop "On" "1280" "800"
        ;;
    33)
        Set_Desktop "On" "1440" "900"
        ;;
    34)
        Set_Desktop "On" "1680" "1050"
        ;;
    35)
        Set_Desktop "On" "1920" "1200"
        ;;
    36)
        Set_Desktop "On" "1024" "600"
        ;;
    37)
        Set_Desktop "On" "2560" "1600"
        ;;
    38)
        Set_Desktop "On" "2560" "1080"
        ;;
    39)
        Set_Desktop "On" "3440" "1440"
        ;;
    40)
        Set_Desktop "On" "2048" "1080"
        ;;
    41)
        Set_Desktop "On" "4096" "2160"
        ;;
    *)
        echo "$(eval_gettext 'Using default resolution')"
        Set_Desktop "On" "800" "600"
        ;;
esac
 
POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab.')" "$TITLE"

Replies

Dadu042 Thursday 2 January 2020 at 12:42
Dadu042

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,4 +1,10 @@
-POL_SetupWindow_message "$(eval_gettext 'These script required a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
+# CHANGELOG
+# [?] (201x)
+#   Initial writting.
+# [Dadu042] (2020-01-02)
+#   English fix.
+
+POL_SetupWindow_message "$(eval_gettext 'These script requires a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
  
 POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|352 x 288 (4:3) |384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1024 x 768 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1360 x 768 (16:9)|1366 x 768 (16:9)|1536 x 864 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9) |2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|1024 x 600 (~17:10) |2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)" "|"
  
@@ -135,4 +141,4 @@
         ;;
 esac
  
-POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab')" "$TITLE"
\ No newline at end of file
+POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab.')" "$TITLE"
\ No newline at end of file

New source code

# CHANGELOG
# [?] (201x)
#   Initial writting.
# [Dadu042] (2020-01-02)
#   English fix.

POL_SetupWindow_message "$(eval_gettext 'These script requires a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
 
POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|352 x 288 (4:3) |384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1024 x 768 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1360 x 768 (16:9)|1366 x 768 (16:9)|1536 x 864 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9) |2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|1024 x 600 (~17:10) |2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)" "|"
 
case "$APP_ANSWER" in
    0)
        Set_Desktop "On" "480" "320"
        ;;
    1)
        Set_Desktop "On" "1152" "768"
        ;;
    2)
        Set_Desktop "On" "1280" "854"
        ;;
    3)
        Set_Desktop "On" "1440" "960"
        ;;
    4)
        Set_Desktop "On" "320" "240"
        ;;
    5)
        Set_Desktop "On" "352" "288"
        ;;
    6)
        Set_Desktop "On" "384" "288"
        ;;
    7)
        Set_Desktop "On" "640" "480"
        ;;
    8)
        Set_Desktop "On" "768" "576"
        ;;
    9)
        Set_Desktop "On" "800" "600"
        ;;
    10)
        Set_Desktop "On" "1024" "768"
        ;;
    11)
        Set_Desktop "On" "1152" "864"
        ;;
    12)
        Set_Desktop "On" "1280" "960"
        ;;
    13)
        Set_Desktop "On" "1400" "1050"
        ;;
    14)
        Set_Desktop "On" "1440" "1080"
        ;;
    15)
        Set_Desktop "On" "1600" "1200"
        ;;
    16)
        Set_Desktop "On" "2048" "1536"
        ;;
    17)
        Set_Desktop "On" "800" "480"
        ;;
    18)
        Set_Desktop "On" "1280" "760"
        ;;
    19)
        Set_Desktop "On" "1280" "1024"
        ;;
    20)
        Set_Desktop "On" "2560" "2048"
        ;;
    21)
        Set_Desktop "On" "854" "480"
        ;;
    22)
        Set_Desktop "On" "1024" "576"
        ;;
    23)
        Set_Desktop "On" "1280" "720"
        ;;
    24)
        Set_Desktop "On" "1360" "768"
        ;;
    25)
        Set_Desktop "On" "1366" "768"
        ;;
    26)
        Set_Desktop "On" "1536" "864"
        ;;
    27)
        Set_Desktop "On" "1600" "900"
        ;;
    28)
        Set_Desktop "On" "1920" "1080"
        ;;
    29)
        Set_Desktop "On" "2560" "1440"
        ;;
    30)
        Set_Desktop "On" "3840" "2160"
        ;;
    31)
        Set_Desktop "On" "320" "200"
        ;;
    32)
        Set_Desktop "On" "1280" "800"
        ;;
    33)
        Set_Desktop "On" "1440" "900"
        ;;
    34)
        Set_Desktop "On" "1680" "1050"
        ;;
    35)
        Set_Desktop "On" "1920" "1200"
        ;;
    36)
        Set_Desktop "On" "1024" "600"
        ;;
    37)
        Set_Desktop "On" "2560" "1600"
        ;;
    38)
        Set_Desktop "On" "2560" "1080"
        ;;
    39)
        Set_Desktop "On" "3440" "1440"
        ;;
    40)
        Set_Desktop "On" "2048" "1080"
        ;;
    41)
        Set_Desktop "On" "4096" "2160"
        ;;
    *)
        echo "$(eval_gettext 'Using default resolution')"
        Set_Desktop "On" "800" "600"
        ;;
esac
 
POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab.')" "$TITLE"

Replies

lahtis Thursday 8 February 2018 at 16:17
lahtis

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

  • Few missing resolution.

Differences

@@ -1,7 +1,7 @@
 POL_SetupWindow_message "$(eval_gettext 'These script required a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
-
-POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1366 x 768 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9)|2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)|352 x 288|1024 x 600" "|"
-
+ 
+POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|352 x 288 (4:3) |384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1024 x 768 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1360 x 768 (16:9)|1366 x 768 (16:9)|1536 x 864 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9) |2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|1024 x 600 (~17:10) |2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)" "|"
+ 
 case "$APP_ANSWER" in
     0)
         Set_Desktop "On" "480" "320"
@@ -19,111 +19,120 @@
         Set_Desktop "On" "320" "240"
         ;;
     5)
-        Set_Desktop "On" "384" "288"
+        Set_Desktop "On" "352" "288"
         ;;
     6)
-        Set_Desktop "On" "640" "480"
+        Set_Desktop "On" "384" "288"
         ;;
     7)
-        Set_Desktop "On" "768" "576"
+        Set_Desktop "On" "640" "480"
         ;;
     8)
-        Set_Desktop "On" "800" "600"
+        Set_Desktop "On" "768" "576"
         ;;
     9)
-        Set_Desktop "On" "1152" "864"
+        Set_Desktop "On" "800" "600"
         ;;
     10)
-        Set_Desktop "On" "1280" "960"
+        Set_Desktop "On" "1024" "768"
         ;;
     11)
-        Set_Desktop "On" "1400" "1050"
+        Set_Desktop "On" "1152" "864"
         ;;
     12)
-        Set_Desktop "On" "1440" "1080"
+        Set_Desktop "On" "1280" "960"
         ;;
     13)
-        Set_Desktop "On" "1600" "1200"
+        Set_Desktop "On" "1400" "1050"
         ;;
     14)
-        Set_Desktop "On" "2048" "1536"
+        Set_Desktop "On" "1440" "1080"
         ;;
     15)
-        Set_Desktop "On" "800" "480"
+        Set_Desktop "On" "1600" "1200"
         ;;
     16)
-        Set_Desktop "On" "1280" "760"
+        Set_Desktop "On" "2048" "1536"
         ;;
     17)
-        Set_Desktop "On" "1280" "1024"
+        Set_Desktop "On" "800" "480"
         ;;
     18)
-        Set_Desktop "On" "2560" "2048"
+        Set_Desktop "On" "1280" "760"
         ;;
     19)
-        Set_Desktop "On" "854" "480"
+        Set_Desktop "On" "1280" "1024"
         ;;
     20)
-        Set_Desktop "On" "1024" "576"
+        Set_Desktop "On" "2560" "2048"
         ;;
     21)
-        Set_Desktop "On" "1280" "720"
+        Set_Desktop "On" "854" "480"
         ;;
     22)
-        Set_Desktop "On" "1366" "768"
+        Set_Desktop "On" "1024" "576"
         ;;
     23)
-        Set_Desktop "On" "1600" "900"
+        Set_Desktop "On" "1280" "720"
         ;;
     24)
-        Set_Desktop "On" "1920" "1080"
+        Set_Desktop "On" "1360" "768"
         ;;
     25)
-        Set_Desktop "On" "2560" "1440"
+        Set_Desktop "On" "1366" "768"
         ;;
     26)
-        Set_Desktop "On" "3840" "2160"
+        Set_Desktop "On" "1536" "864"
         ;;
     27)
-        Set_Desktop "On" "320" "200"
+        Set_Desktop "On" "1600" "900"
         ;;
     28)
-        Set_Desktop "On" "1280" "800"
+        Set_Desktop "On" "1920" "1080"
         ;;
     29)
-        Set_Desktop "On" "1440" "900"
+        Set_Desktop "On" "2560" "1440"
         ;;
     30)
-        Set_Desktop "On" "1680" "1050"
+        Set_Desktop "On" "3840" "2160"
         ;;
     31)
-        Set_Desktop "On" "1920" "1200"
+        Set_Desktop "On" "320" "200"
         ;;
     32)
-        Set_Desktop "On" "2560" "1600"
+        Set_Desktop "On" "1280" "800"
         ;;
     33)
-        Set_Desktop "On" "2560" "1080"
+        Set_Desktop "On" "1440" "900"
         ;;
     34)
-        Set_Desktop "On" "3440" "1440"
+        Set_Desktop "On" "1680" "1050"
         ;;
     35)
-        Set_Desktop "On" "2048" "1080"
+        Set_Desktop "On" "1920" "1200"
         ;;
     36)
-        Set_Desktop "On" "4096" "2160"
+        Set_Desktop "On" "1024" "600"
         ;;
     37)
-        Set_Desktop "On" "352" "288"
+        Set_Desktop "On" "2560" "1600"
         ;;
     38)
-        Set_Desktop "On" "1024" "600"
+        Set_Desktop "On" "2560" "1080"
+        ;;
+    39)
+        Set_Desktop "On" "3440" "1440"
+        ;;
+    40)
+        Set_Desktop "On" "2048" "1080"
+        ;;
+    41)
+        Set_Desktop "On" "4096" "2160"
         ;;
     *)
         echo "$(eval_gettext 'Using default resolution')"
         Set_Desktop "On" "800" "600"
         ;;
 esac
-
+ 
 POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab')" "$TITLE"
\ No newline at end of file

New source code

POL_SetupWindow_message "$(eval_gettext 'These script required a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
 
POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|352 x 288 (4:3) |384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1024 x 768 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1360 x 768 (16:9)|1366 x 768 (16:9)|1536 x 864 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9) |2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|1024 x 600 (~17:10) |2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)" "|"
 
case "$APP_ANSWER" in
    0)
        Set_Desktop "On" "480" "320"
        ;;
    1)
        Set_Desktop "On" "1152" "768"
        ;;
    2)
        Set_Desktop "On" "1280" "854"
        ;;
    3)
        Set_Desktop "On" "1440" "960"
        ;;
    4)
        Set_Desktop "On" "320" "240"
        ;;
    5)
        Set_Desktop "On" "352" "288"
        ;;
    6)
        Set_Desktop "On" "384" "288"
        ;;
    7)
        Set_Desktop "On" "640" "480"
        ;;
    8)
        Set_Desktop "On" "768" "576"
        ;;
    9)
        Set_Desktop "On" "800" "600"
        ;;
    10)
        Set_Desktop "On" "1024" "768"
        ;;
    11)
        Set_Desktop "On" "1152" "864"
        ;;
    12)
        Set_Desktop "On" "1280" "960"
        ;;
    13)
        Set_Desktop "On" "1400" "1050"
        ;;
    14)
        Set_Desktop "On" "1440" "1080"
        ;;
    15)
        Set_Desktop "On" "1600" "1200"
        ;;
    16)
        Set_Desktop "On" "2048" "1536"
        ;;
    17)
        Set_Desktop "On" "800" "480"
        ;;
    18)
        Set_Desktop "On" "1280" "760"
        ;;
    19)
        Set_Desktop "On" "1280" "1024"
        ;;
    20)
        Set_Desktop "On" "2560" "2048"
        ;;
    21)
        Set_Desktop "On" "854" "480"
        ;;
    22)
        Set_Desktop "On" "1024" "576"
        ;;
    23)
        Set_Desktop "On" "1280" "720"
        ;;
    24)
        Set_Desktop "On" "1360" "768"
        ;;
    25)
        Set_Desktop "On" "1366" "768"
        ;;
    26)
        Set_Desktop "On" "1536" "864"
        ;;
    27)
        Set_Desktop "On" "1600" "900"
        ;;
    28)
        Set_Desktop "On" "1920" "1080"
        ;;
    29)
        Set_Desktop "On" "2560" "1440"
        ;;
    30)
        Set_Desktop "On" "3840" "2160"
        ;;
    31)
        Set_Desktop "On" "320" "200"
        ;;
    32)
        Set_Desktop "On" "1280" "800"
        ;;
    33)
        Set_Desktop "On" "1440" "900"
        ;;
    34)
        Set_Desktop "On" "1680" "1050"
        ;;
    35)
        Set_Desktop "On" "1920" "1200"
        ;;
    36)
        Set_Desktop "On" "1024" "600"
        ;;
    37)
        Set_Desktop "On" "2560" "1600"
        ;;
    38)
        Set_Desktop "On" "2560" "1080"
        ;;
    39)
        Set_Desktop "On" "3440" "1440"
        ;;
    40)
        Set_Desktop "On" "2048" "1080"
        ;;
    41)
        Set_Desktop "On" "4096" "2160"
        ;;
    *)
        echo "$(eval_gettext 'Using default resolution')"
        Set_Desktop "On" "800" "600"
        ;;
esac
 
POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab')" "$TITLE"

Replies

LinuxScripter Thursday 8 February 2018 at 16:06
LinuxScripter Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

The function works good but why it's prefered to choose resolution smaller than our monitor's?

Added 1024x768 resolution.

Differences

@@ -31,93 +31,96 @@
         Set_Desktop "On" "800" "600"
         ;;
     9)
-        Set_Desktop "On" "1152" "864"
+        Set_Desktop "On" "1024" "768"
         ;;
     10)
-        Set_Desktop "On" "1280" "960"
+        Set_Desktop "On" "1152" "864"
         ;;
     11)
-        Set_Desktop "On" "1400" "1050"
+        Set_Desktop "On" "1280" "960"
         ;;
     12)
-        Set_Desktop "On" "1440" "1080"
+        Set_Desktop "On" "1400" "1050"
         ;;
     13)
-        Set_Desktop "On" "1600" "1200"
+        Set_Desktop "On" "1440" "1080"
         ;;
     14)
-        Set_Desktop "On" "2048" "1536"
+        Set_Desktop "On" "1600" "1200"
         ;;
     15)
-        Set_Desktop "On" "800" "480"
+        Set_Desktop "On" "2048" "1536"
         ;;
     16)
-        Set_Desktop "On" "1280" "760"
+        Set_Desktop "On" "800" "480"
         ;;
     17)
-        Set_Desktop "On" "1280" "1024"
+        Set_Desktop "On" "1280" "760"
         ;;
     18)
-        Set_Desktop "On" "2560" "2048"
+        Set_Desktop "On" "1280" "1024"
         ;;
     19)
-        Set_Desktop "On" "854" "480"
+        Set_Desktop "On" "2560" "2048"
         ;;
     20)
-        Set_Desktop "On" "1024" "576"
+        Set_Desktop "On" "854" "480"
         ;;
     21)
-        Set_Desktop "On" "1280" "720"
+        Set_Desktop "On" "1024" "576"
         ;;
     22)
-        Set_Desktop "On" "1366" "768"
+        Set_Desktop "On" "1280" "720"
         ;;
     23)
-        Set_Desktop "On" "1600" "900"
+        Set_Desktop "On" "1366" "768"
         ;;
     24)
-        Set_Desktop "On" "1920" "1080"
+        Set_Desktop "On" "1600" "900"
         ;;
     25)
-        Set_Desktop "On" "2560" "1440"
+        Set_Desktop "On" "1920" "1080"
         ;;
     26)
-        Set_Desktop "On" "3840" "2160"
+        Set_Desktop "On" "2560" "1440"
         ;;
     27)
-        Set_Desktop "On" "320" "200"
+        Set_Desktop "On" "3840" "2160"
         ;;
     28)
-        Set_Desktop "On" "1280" "800"
+        Set_Desktop "On" "320" "200"
         ;;
     29)
-        Set_Desktop "On" "1440" "900"
+        Set_Desktop "On" "1280" "800"
         ;;
     30)
-        Set_Desktop "On" "1680" "1050"
+        Set_Desktop "On" "1440" "900"
         ;;
     31)
-        Set_Desktop "On" "1920" "1200"
+        Set_Desktop "On" "1680" "1050"
         ;;
     32)
-        Set_Desktop "On" "2560" "1600"
+        Set_Desktop "On" "1920" "1200"
         ;;
     33)
-        Set_Desktop "On" "2560" "1080"
+        Set_Desktop "On" "2560" "1600"
         ;;
     34)
-        Set_Desktop "On" "3440" "1440"
+        Set_Desktop "On" "2560" "1080"
         ;;
     35)
-        Set_Desktop "On" "2048" "1080"
+        Set_Desktop "On" "3440" "1440"
         ;;
     36)
-        Set_Desktop "On" "4096" "2160"
+        Set_Desktop "On" "2048" "1080"
         ;;
     37)
-        Set_Desktop "On" "352" "288"
+        Set_Desktop "On" "4096" "2160"
         ;;
     38)
+        Set_Desktop "On" "352" "288"
+        ;;
+    39)
         Set_Desktop "On" "1024" "600"
         ;;
     *)

New source code

POL_SetupWindow_message "$(eval_gettext 'These script required a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"

POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1366 x 768 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9)|2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)|352 x 288|1024 x 600" "|"

case "$APP_ANSWER" in
    0)
        Set_Desktop "On" "480" "320"
        ;;
    1)
        Set_Desktop "On" "1152" "768"
        ;;
    2)
        Set_Desktop "On" "1280" "854"
        ;;
    3)
        Set_Desktop "On" "1440" "960"
        ;;
    4)
        Set_Desktop "On" "320" "240"
        ;;
    5)
        Set_Desktop "On" "384" "288"
        ;;
    6)
        Set_Desktop "On" "640" "480"
        ;;
    7)
        Set_Desktop "On" "768" "576"
        ;;
    8)
        Set_Desktop "On" "800" "600"
        ;;
    9)
        Set_Desktop "On" "1024" "768"
        ;;
    10)
        Set_Desktop "On" "1152" "864"
        ;;
    11)
        Set_Desktop "On" "1280" "960"
        ;;
    12)
        Set_Desktop "On" "1400" "1050"
        ;;
    13)
        Set_Desktop "On" "1440" "1080"
        ;;
    14)
        Set_Desktop "On" "1600" "1200"
        ;;
    15)
        Set_Desktop "On" "2048" "1536"
        ;;
    16)
        Set_Desktop "On" "800" "480"
        ;;
    17)
        Set_Desktop "On" "1280" "760"
        ;;
    18)
        Set_Desktop "On" "1280" "1024"
        ;;
    19)
        Set_Desktop "On" "2560" "2048"
        ;;
    20)
        Set_Desktop "On" "854" "480"
        ;;
    21)
        Set_Desktop "On" "1024" "576"
        ;;
    22)
        Set_Desktop "On" "1280" "720"
        ;;
    23)
        Set_Desktop "On" "1366" "768"
        ;;
    24)
        Set_Desktop "On" "1600" "900"
        ;;
    25)
        Set_Desktop "On" "1920" "1080"
        ;;
    26)
        Set_Desktop "On" "2560" "1440"
        ;;
    27)
        Set_Desktop "On" "3840" "2160"
        ;;
    28)
        Set_Desktop "On" "320" "200"
        ;;
    29)
        Set_Desktop "On" "1280" "800"
        ;;
    30)
        Set_Desktop "On" "1440" "900"
        ;;
    31)
        Set_Desktop "On" "1680" "1050"
        ;;
    32)
        Set_Desktop "On" "1920" "1200"
        ;;
    33)
        Set_Desktop "On" "2560" "1600"
        ;;
    34)
        Set_Desktop "On" "2560" "1080"
        ;;
    35)
        Set_Desktop "On" "3440" "1440"
        ;;
    36)
        Set_Desktop "On" "2048" "1080"
        ;;
    37)
        Set_Desktop "On" "4096" "2160"
        ;;
    38)
        Set_Desktop "On" "352" "288"
        ;;
    39)
        Set_Desktop "On" "1024" "600"
        ;;
    *)
        echo "$(eval_gettext 'Using default resolution')"
        Set_Desktop "On" "800" "600"
        ;;
esac

POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab')" "$TITLE"

Replies

Thursday 8 February 2018 at 16:43
Virtual desktop is not designed to give a false screen and a better compatibility (because not linking with you system window manager). The virtual desktop don't start fullscreen so if you select your screen resolution, a part of it will be outside your screen
Tutul Thursday 8 February 2018 at 3:27
Tutul

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,8 +1,8 @@
 POL_SetupWindow_message "$(eval_gettext 'These script required a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
 
-POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution'" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1366 x 768 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9)|2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)|352 x 288|1024 x 600)" "|"
+POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1366 x 768 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9)|2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)|352 x 288|1024 x 600" "|"
 
-switch "$APP_ANSWER" in
+case "$APP_ANSWER" in
     0)
         Set_Desktop "On" "480" "320"
         ;;

New source code

POL_SetupWindow_message "$(eval_gettext 'These script required a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"

POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1366 x 768 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9)|2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)|352 x 288|1024 x 600" "|"

case "$APP_ANSWER" in
    0)
        Set_Desktop "On" "480" "320"
        ;;
    1)
        Set_Desktop "On" "1152" "768"
        ;;
    2)
        Set_Desktop "On" "1280" "854"
        ;;
    3)
        Set_Desktop "On" "1440" "960"
        ;;
    4)
        Set_Desktop "On" "320" "240"
        ;;
    5)
        Set_Desktop "On" "384" "288"
        ;;
    6)
        Set_Desktop "On" "640" "480"
        ;;
    7)
        Set_Desktop "On" "768" "576"
        ;;
    8)
        Set_Desktop "On" "800" "600"
        ;;
    9)
        Set_Desktop "On" "1152" "864"
        ;;
    10)
        Set_Desktop "On" "1280" "960"
        ;;
    11)
        Set_Desktop "On" "1400" "1050"
        ;;
    12)
        Set_Desktop "On" "1440" "1080"
        ;;
    13)
        Set_Desktop "On" "1600" "1200"
        ;;
    14)
        Set_Desktop "On" "2048" "1536"
        ;;
    15)
        Set_Desktop "On" "800" "480"
        ;;
    16)
        Set_Desktop "On" "1280" "760"
        ;;
    17)
        Set_Desktop "On" "1280" "1024"
        ;;
    18)
        Set_Desktop "On" "2560" "2048"
        ;;
    19)
        Set_Desktop "On" "854" "480"
        ;;
    20)
        Set_Desktop "On" "1024" "576"
        ;;
    21)
        Set_Desktop "On" "1280" "720"
        ;;
    22)
        Set_Desktop "On" "1366" "768"
        ;;
    23)
        Set_Desktop "On" "1600" "900"
        ;;
    24)
        Set_Desktop "On" "1920" "1080"
        ;;
    25)
        Set_Desktop "On" "2560" "1440"
        ;;
    26)
        Set_Desktop "On" "3840" "2160"
        ;;
    27)
        Set_Desktop "On" "320" "200"
        ;;
    28)
        Set_Desktop "On" "1280" "800"
        ;;
    29)
        Set_Desktop "On" "1440" "900"
        ;;
    30)
        Set_Desktop "On" "1680" "1050"
        ;;
    31)
        Set_Desktop "On" "1920" "1200"
        ;;
    32)
        Set_Desktop "On" "2560" "1600"
        ;;
    33)
        Set_Desktop "On" "2560" "1080"
        ;;
    34)
        Set_Desktop "On" "3440" "1440"
        ;;
    35)
        Set_Desktop "On" "2048" "1080"
        ;;
    36)
        Set_Desktop "On" "4096" "2160"
        ;;
    37)
        Set_Desktop "On" "352" "288"
        ;;
    38)
        Set_Desktop "On" "1024" "600"
        ;;
    *)
        echo "$(eval_gettext 'Using default resolution')"
        Set_Desktop "On" "800" "600"
        ;;
esac

POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab')" "$TITLE"

Replies

Thursday 8 February 2018 at 15:11
missing 1024 x 768
Thursday 8 February 2018 at 15:49
Yea I only but standard that I found. I'll add it soon
Thursday 8 February 2018 at 15:55
Funny, it's a standard and I got it on my list but seems I miss it

Edited by Tutul

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com