pyt0xic / hyprfocus

a focus animation plugin for Hyprland inspired by Flashfocus
BSD 3-Clause "New" or "Revised" License
53 stars 7 forks source link

Missing `plugin:` prefix in config instructions in README #11

Open oscar-schwarz opened 1 month ago

oscar-schwarz commented 1 month ago

Hi, I just had some headaches to get this plugin working (now it works like a charm, great work!) but it seems there's an error in the README. Apparently, this doesn't work:

hyprfocus {
  ;...
}

but this does:

plugin:hyprfocus {
  ;...
}

I am on NixOS with home-manager maybe that's the issue? The hyprland plugins here are not loaded through hyprpm but installed "manually" by loading the .so file through the plugin keyword.

(I know there has been a PR about this already but thats closed so I am opening another issue)

sychromy commented 3 weeks ago

I had same problem on Arch just now, so it's not specific for Nix

oscar-schwarz commented 3 weeks ago

I figured its because it should be either in the attribute set plugin or have the plugin: prefix.

plugin {
  hyprfocus {
    ...
  }
}

is aquivalent to

plugin:hyprfocus {
  ...
}

So its just a syntax thing with the hyprland config.