Skip to content

Instantly share code, notes, and snippets.

View IngoMeyer441's full-sized avatar

Ingo Meyer IngoMeyer441

View GitHub Profile
@IngoMeyer441
IngoMeyer441 / x-resize
Last active November 7, 2024 08:08 — forked from manuuurino/x-resize
Manual Implementation of Auto Resizing For Non-Gnome Environments (like XFCE) running under Spice/Libvirt
#!/bin/bash
# SPDX-License-Identifier: MIT
# Steps:
# 1) Make sure bash is available
# 2) Create udev rule
# - path to new udev rule: /etc/udev/rules.d/50-x-resize.rules
# - udev rule content:
# ACTION=="change", KERNEL=="card[0-9]*", SUBSYSTEM=="drm", RUN+="/usr/local/bin/x-resize"
# 3) Create /var/log/autores directory
# 4) Create script /usr/local/bin/x-resize (this file) and make executable