Skip to content

26.09

Latest

Choose a tag to compare

@nferhat nferhat released this 25 Sep 17:32
· 27 commits to main since this release
f20a447

Finally, a new release for (the last moments of) this summer!

After a lot of inactivity, I am happy to wrap up close to a year of improvement into a new release! Busy being a student is pretty hard, and maintaining such a huge project on the side is quite the challenge, so I am glad for everyone that
sticks around!

While I haven't worked on much except fixing issues and making the experience smoother, I am happy to introduce new people working on the project!

Swipe gestures

Thanks to @LeVraiArdox, fhtc now has fancy touchpad gestures with #85! They are configurable and really flexible!

Of course, the flashy ones are the workspace switching ones:

gestures.mp4

However, there are other actions available, like the fullscreen-focused-window shown in this video.

A lot of polishing went into making the gestures feel natural and refined. Small details matter here: missing animations, poor handling of sudden changes, incorrectly resetting the animation state... With enough tweaking and reviewing, we managed to get a really nice result that I'm happy about

bad.mp4
smooth.mp4

They are configured in animations.workspace-switch. The defaults give you a nice smooth animation with enough room to "peek" into the next/previous workspace.

Laptop users, rejoice!

hyprland-global-shortcuts protocol.

I worked on adding support for Hyprland global shortcuts in #116. While you might be asking: why add a Hyprland ecosystem protocol? It is mostly for non-Hyprland software that already depends on it.

Notably, there's Quickshell, with it's GlobalShortcut type. It's extremely handy to communicate/control Quickshell. And much more ergonomic than running qs ipc ... in a run-command-line or run

After registering global shortcuts, fht-compositor ipc global-shortcuts will give you a list of available shortcuts

$ fht-compositor ipc global-shortcuts

Global Shortcut #0:
	App ID: quickshell
	ID: openLauncher
	Description: Open launcher
	Trigger Description:
---
Global Shortcut #1:
    App ID: quickshell
    ID: openClipboard
    Description: Open the clipboard menu
    Trigger Description:
...

You can then use the shortcuts in your config with the global-shortcut action.
The argument comes in the form of <app-id>:<shortcut-id>, for example:

[keybinds]
Super-p = { action = "global-shortcut", arg = "quickshell:openLauncher" }

ext-workspace support.

Adding support for ext-workspace was pretty straightforward, due to the rather simplistic workspace model of fhtc. A lot of modern shells/tools use this instead of per-compositor IPC.

Projects like DankMaterialShell or Waybar (ext/workspaces module) should have a better out-of-the-box experience, with their workspace widget/module working flawlessly.

Two new tree-based layouts

Thanks to @marcybelardo, fhtc now has two new layouts! in #147: binary-tree and spiral-tree. Both recursively split the workspace in two for every new window (a classic BSP tree), spiral-tree just winds the splits into a spiral instead of alternating straight down the middle.

Since a tree isn't a simple master/stack list, the existing focus-next-window and focus-previous-window actions didn't make much sense. So, to make navigate the new tree layouts, there's now directional focus!
You can use focus-window-down/up/left/right (and swapping with swap-... respectively) to focus the window in the given direction. They aren't specific to tree layouts and work on every available layout!

Of course, you can also use this from the IPC with the focus-window-directional action.

Gamma control

Thanks to @LeVraiArdox, fhtc now implements wlr-gamma-control-unstable-v1 on the udev backend in #103! Tools like wlsunset or gammastep will now work flawlessly to warm up your screen at night.

Persistent screen sharing sessions

The screencast portal now supports restore_data/persist_mode, meaning apps like OBS won't make you re-pick the window/output/monitor every single time you start a screen share, similar to desktop environments like KDE.

Some difficulties and ambiguities arise when trying to restore. We first try to get an exact ID match (with the same increasing IDs exposed in the IPC). If this fails, we also try to loosely match with app title.

Some applications have a static prefix/suffix/part in their title, with a portion that change (for example browsers have the active tab name), this mechanism should handle such cases.

Thanks to the KDE desktop portal and the Hyprland desktop portal for the specifics of the implementation

Nix reworking

Via @poach3r, Nix users will not have to depend on flake-parts anymore. It was a huge library that brought in way too much for this rather simplistic flake. You will notice marginally faster evaluation times, especially for the dev-shell.

You can also use fht-compositor without flakes! You can import it as a nix-channel and use it. There's also an overlay provided if you like that.

{ pkgs, ... }:

let
  fht-compositor = import /path/to/fht-compositor;
  # with nix-channels
  # fht-compositor = import <fht-compositor>;
in {
  imports = [
    "${fht-compositor}/nix/nixos-module.nix"
    # "${fht-compositor}/nix/hm-module.nix" # for home-manager
  ];

  programs.fht-compositor.enable = true;
  nixpkgs.overlays = [ (import "${fht-compositor}/nix/overlay.nix" {}) ];
}

What's Changed

New Contributors

As usual, this isn't every single check, feel free to check out the full changelog: 25.10.1...26.09