From 9ec31792fe134b1503a67b0b5d2d96f247608f66 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 10 Dec 2023 02:07:47 +0100 Subject: [PATCH] Add hyprpm manifest --- README.md | 18 +++++++++++++----- hyprpm.toml | 9 +++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 hyprpm.toml diff --git a/README.md b/README.md index b68d6c9..abe6e70 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,25 @@ This plugin changes the behavior of the `togglegroup` dispatcher for dwindle layout, to automatically group all of the child windows when a new group is created. -Before Hyprland `v0.23.0beta`, this was actually the default behavior ([PR #1580](https://github.com/hyprwm/Hyprland/pull/1580)), however as that release introduced group support for other layouts, including floating windows, this dwindle specific feature was removed and `togglegroup` now only creates a group window, and requires you to move in all of the windows that should be a part of that group into it manually. +> [!IMPORTANT] +> dwindle-autogroup follows hyprland-git and requires hyprland-git to work properly. +> If you want to use a versioned hyprland, you'll have to reset hyprland-plugins +> to a commit from before that hyprland version's release date. + +Before Hyprland `v0.23.0beta`, this groupping behavior was actually the default behavior ([PR #1580](https://github.com/hyprwm/Hyprland/pull/1580)), however as that release introduced group support for other layouts, including floating windows, this dwindle specific feature was removed and `togglegroup` now only creates a group window, and requires you to move in all of the windows that should be a part of that group into it manually. ## Installation -Since Hyprland plugins don't have ABI guarantees, you should download the Hyprland source and compile it if you plan to use plugins. This ensures the compiler version is the same between the Hyprland build you're running, and the plugins you are using. +### Hyprpm -The guide on compiling and installing Hyprland manually is on the [wiki](http://wiki.hyprland.org/Getting-Started/Installation/#manual-manual-build) +The recommended way to install this plugin is via `hyprpm`: -Note, this plugin currently requires hyprland compiled from commit: [`4afeedbd`](https://github.com/hyprwm/Hyprland/commit/4afeedbd567ca2114f682f14a6de26d4a8188878) or later. +- `hyprpm add https://github.com/ItsDrike/hyprland-dwindle-autogroup` +- `hyprpm enable dwindle-autogroup` -## Using [hyprload](https://github.com/Duckonaut/hyprload) +To automatically load the plugin when hyprland starts, add `exec-once = hyprpm reload -n` to your hyprland config. + +### [Hyprload](https://github.com/Duckonaut/hyprload) Add the line `"ItsDrike/hyprland-dwindle-autogroup"` to your `hyprload.toml` config, like this: diff --git a/hyprpm.toml b/hyprpm.toml new file mode 100644 index 0000000..918599b --- /dev/null +++ b/hyprpm.toml @@ -0,0 +1,9 @@ +[repository] +name = "dwindle-autogroup" +authors = ["ItsDrike"] + +[dwindle-autogroup] +description = "Automatically group child nodes on group creation in dwindle layout" +authors = ["ItsDrike"] +output = "dwindle-autogroup.so" +build = ["make all"]