This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function on_fullscreen_change(name, value) | |
| --[[ | |
| xrandr | grep "HDMI-A-0 connected primary 1920x1080+0+0" && echo "true" || echo "false" | |
| xrandr | grep "HDMI-A-0 connected primary 3840x2160+0+0" && echo "true" || echo "false" | |
| --]] | |
| if value == true then | |
| local xrandr_response = os.capture('/usr/bin/xrandr | grep "HDMI-A-0 connected primary 1920x1080+0+0"') | |
| if xrandr_response == "HDMI-A-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 1600mm x 900mm" then | |
| os.capture('xrandr --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --off --output HDMI-A-0 --primary --mode 3840x2160 --pos 0x0 --rotate normal') | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| is_running=false | |
| trap ctrl_c INT | |
| function ctrl_c() { | |
| pkill xpointerbarrier | |
| exit | |
| } |
NewerOlder