Skip to content

Conversation

@JakeStanger
Copy link
Owner

@JakeStanger JakeStanger commented Oct 6, 2025

Hovering an icon will display a live window preview image.

image

Resolves #157


This is an EXPERIMENTAL new feature. It works fine (I think) on my machine, but has not been tested anywhere else. As this deals with a fair amount of unsafe code, FFI, and the GPU, it is slightly more prone to going wrong than most features. I've fixed all the crashes I've discovered and Ironbar no longer takes up enough vram to start locking up other processes, but you have been warned...

Currently this relies on hyprland-toplevel-export-v1, which means currently only Hyprland is supported. Prior to merge, support for ext-image-copy-capture-v1 will be added, which is currently supported by Sway, COSMIC, Jay, and Treeland. Other compositors (Including Hyprland) should follow behind.

This also relies on DMA-BUF being available, which allows for offloading all the image work straight to the GPU. Any modern GPU driver should work with this, but older ones may not be supported, and I've no idea about Nouveau.

This raises the minimum required GTK version to 4.14. As a result, CI is failing due to some deprecated GTK functions. It's also failing because I need to fix the feature flags (I'd recommend building with all features if you want to try this). Everything does build and run okay though.

Hovering an icon will display a live window preview image.

Resolves #157
@JakeStanger JakeStanger force-pushed the feat/launcher-previews branch from 88a3c7b to befcd9f Compare October 14, 2025 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Launcher] Window previews

2 participants