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 April 20, 2024 19:46
Moving windows programmatically in Gnome under Wayland (or X)
#!/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