Created
July 18, 2023 15:53
-
-
Save tox2ik/311f3917c3efbb43ff0a2fa29b47804d to your computer and use it in GitHub Desktop.
wmctrl - add fullscreen mode and raise game window
This file contains 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 is a workaround to a game forgetting the 'fullscreen setting' | |
# The fullscreen option can be applied to any window, it works like the "maximize" button on the window bar afaik | |
# The game must be launched on the current virtual desktop for this to work. | |
#!/bin/bash | |
twom-fullscreen () | |
{ | |
local _twm=$(wmctrl -l | grep 'This War of Mine'$ | awk '{ print $1 }'); | |
wmctrl -i -r $_twm -b add,fullscreen; | |
wmctrl -i -a $_twm | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment