Skip to content

Instantly share code, notes, and snippets.

@dgalli1
Created November 5, 2019 10:18
Show Gist options
  • Save dgalli1/e74c41a40086f2827336a0c4fded5feb to your computer and use it in GitHub Desktop.
Save dgalli1/e74c41a40086f2827336a0c4fded5feb to your computer and use it in GitHub Desktop.
Change Virtual Desktop Size Dynamicly
#!/bin/bash
#set the resolution
resolution=$(xdpyinfo | grep dimensions | awk '{print $2}')
echo $resolution
WINEPREFIX=PATH_TO_WINEPREFIX winetricks vd=$resolution
#run the application after the resolution was set
WINEPREFIX=PATH_TO_WINEPREFIX wine PATH_TO_EXECUTABLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment