This is a tool written in Rust with WebGPU for Gnome Shell to fracture (crop) and shade windows on Linux.
It does not perform well. This is an early version. It should be possible to optimize it lots, but I'm bored of writing it for now.
I don't know yet. I've tested it on...
- a RTX 4090 (with Ubuntu 24.10)
- a GTX 970 (with Ubuntu 24.10)
- a mid 2014 MacBook Pro (also with Ubuntu 24.10)
- Virtualbox
- Gnome Shell
- This is directly supported, with the ability to launch directly with specific focussed windows by a keyboard shortcut
- Kde
- Any DE that supports xdg-desktop-portal screencast
More thoughts on other environments
At the moment, this application only supports Linux.
Though, WebGPU is crossplatform, and works on both other desktop environments and even other operating systems like Windows or MacOS. In the future, other environments could be supported without significantly rewriting this application. However, it would require directly supporting these environments because methods to access or record a window are different on each environment.
Supporting other environments is not a goal at the moment as I only plan on supporting environments that I actively use myself. Though, if usage of this tool becomes significant I might support other environments.
It's not a requirement to use the extension. If it's not desired to use it, close the installer prompt and Gnome will start it with xdg-desktop-portals instead. The extension is just to make it possible to launch by focussed window without an extra prompt.
This application installs the Gnome Shell Extension
This extension is installed to determine open windows, determine the focussed window, and to retrieve the window IDs assigned to obtain a pipewire stream.
Before the installation happens, a launcher is shown to prompt the installation.
Click to see a wall of text on my personal thoughts about the Gnome Shell Extension
It's an issue, but I don't want to fix it right now. I don't expect it to cause problems. Save yourself from reading the rest
This extension provides all applications on the system with Dbus access the ability to monitor and control windows. This is not ideal or a perfect long term solution. While it is intended by Gnome Shell to provide the ability for approved applications to access these methods, it doesn't seem like the desired goal was for Gnome Shell to have these methods globally available to all applications on the system. As an example, Dbus calls to Eval were restricted several years ago.
My opinion is that the security risk from the exposed methods is overstressed. As an example, users on Linux are often requested to type sudo into terminal for installation of different software. This type of request is very extreme, and provides the application the power to completely uninstall, change the desktop environment or completely destroy the current install of the operating system. This simple seeming request of using sudo greatly extends the power of an application far beyond some methods to manage the top level windows of a desktop environment.
The exposed methods over Dbus are only accessible to software that is being executed by the system. This implies that the user already trusts the software being executed, and, in my opinion, is that for the most part the end user should not be concerned about possible access to window calls by software they already seem to trust. Though, I don't believe this is the most optimal long term solution.
With Wayland, XDG Desktop Portals have been a method to manage more so administrative seeming authorizations in a way that works across desktop environments. I think an approach for persistently authorizing applications to manage the mentioned API calls would be a more optimal long term solution. Though, my influence with Gnome Shell development is limited, and my motivation to create a custom Gnome Shell extension that tries to deliver per application approvals isn't high. In the future I may make more of an effort to improve the installed extension to a more secure alternative, but for the previous stated reasons, I think the risk is low while a more perfect solution would unnecessarily increase my development workload.
No, but on Ubuntu with Gnome, I use Tiling Shell and WinTile at the same time. I think their combined power is better than the version provided by Windows Powertoys.
It needs work. The code needs to be cleaned more. The project also needs to be optimized. It should be possible to improve performance from the current version.
This is an early version and I've been feeling bored of working on it. I ended up mostly using mpv to crop videos and haven't felt the need to improve it for my personal use.
This project can be run with cargo run for testing purposes. If it's ran through cargo run it expects at least the following dependencies
sudo apt install libdbus-1-dev libpango1.0-dev libgdk-pixbuf-2.0-0 libgtk-4-dev libxml2 libpipewire-0.3-dev clang When building with cargo run the installer for the project cannot correctly add keyboard shortcuts and will add shortcut that cannot be used.
To build the flatpak, open the flatpak folder and run the build.sh file. It will build and install the flatpak version. I don't how likely the script is fail, so the output will need to be monitored closely.
For Gnome only, when the extension is installed, it makes Dbus calls to a Gnome Extension that is under GPL code to receive window ids and the size of windows. See my rust crate here for more information. I'm not confident that some Dbus calls to a Gnome Extension under GPL code will impact this license in the same way that I would not always expect web requests to a website under GPL code to impact the license. This source in this project is being released under more permissive licenses, but the impact of the gnome_window_calls crate should be considered when making modifications. (I don't know how to interpret it)
For the rest of the code, it's licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)


















