Skip to content

Instantly share code, notes, and snippets.

View MortenStabenau's full-sized avatar

Morten MortenStabenau

View GitHub Profile
@MortenStabenau
MortenStabenau / widescreen-resize.sh
Last active December 6, 2023 08:56
Moving windows programmatically in Gnome under Wayland (or X)
View widescreen-resize.sh
#!/bin/bash
# -------- 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:
# https://developer.gnome.org/meta/stable/MetaWindow.html
set -e