Skip to content

Instantly share code, notes, and snippets.


Morten MortenStabenau

View GitHub Profile
MortenStabenau /
Last active August 16, 2022 13:01
Moving windows programmatically in Gnome under Wayland (or X)
# -------- THIS SCRIPT IS OUTDATED -------
# Gnome has removed the Shell.Eval endpoint, so it won't work anymore.
# Feel free to use it as inspiration for something else.
# Original comment below.
# ----------------------------------------
# This script programmatically moves around the windows on my screens.
# The JavaScript can be prototyped in Looking Glass (ALT+F2 lg). The documentation of MetaWindow can be found here:
set -e