Skip to content

Commit

Permalink
feat: restore hypr feature
Browse files Browse the repository at this point in the history
  • Loading branch information
VTimofeenko committed Oct 25, 2024
1 parent 2b90127 commit e8bcb4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ There are three categories of options:
* `withGnome`, `bool` – whether to enable Gnome support
* `withX11`, `bool` – whether to enable X11 support
* `withKDE`, `bool` – whether to enable KDE wayland support
* `withHypr`, `bool` – whether to enable non-wlroots based Hyprland support

All of them are false by default, which means no application-specific remaps work as xremap does not know which application is being used.

Expand Down
6 changes: 3 additions & 3 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ in
withSway = mkEnableOption "support for Sway (consider switching to wlroots)";
withGnome = mkEnableOption "support for Gnome";
withX11 = mkEnableOption "support for X11";
withHypr = mkEnableOption "support for Hyprland (consider switching to wlroots)";
withWlroots = mkEnableOption "support for wlroots-based compositors (Sway, Hyprland, etc.)";
withHypr = mkEnableOption "support for post-wlroots Hyprland";
withWlroots = mkEnableOption "support for wlroots-based compositors (Sway, old Hyprland, etc.)";
withKDE = mkEnableOption "support KDE-Plasma Wayland";
enable = mkOption {
type = types.bool;
Expand Down Expand Up @@ -66,7 +66,7 @@ in
else if cfg.withX11 then
selfPkgs'.xremap-x11
else if cfg.withHypr then
lib.warn "Consider using withWlroots as recommended by upstream" selfPkgs'.xremap-hypr
selfPkgs'.xremap-hypr
else if cfg.withKDE then
selfPkgs'.xremap-kde
else
Expand Down
2 changes: 1 addition & 1 deletion overlay/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ rec {
xremap-sway = mkUpstreamDeprecatedNote "sway";
xremap-gnome = packageWithFeature "gnome";
xremap-x11 = packageWithFeature "x11";
xremap-hypr = mkUpstreamDeprecatedNote "hypr";
xremap-hypr = packageWithFeature "hypr";
xremap-kde = packageWithFeature "kde";
}

0 comments on commit e8bcb4e

Please sign in to comment.