Skip to content

Instantly share code, notes, and snippets.

@tox2ik
Created July 18, 2023 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tox2ik/311f3917c3efbb43ff0a2fa29b47804d to your computer and use it in GitHub Desktop.
Save tox2ik/311f3917c3efbb43ff0a2fa29b47804d to your computer and use it in GitHub Desktop.
wmctrl - add fullscreen mode and raise game window
# 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