1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-10 21:29:48 +01:00

hyprland: mark plugin setting as important

The plugins are often necessary for other configurations.
This commit is contained in:
Robin Gloster 2023-11-21 15:22:17 +01:00 committed by Mikilio
parent d44e73cb27
commit 5ce51947f5
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F
2 changed files with 3 additions and 3 deletions

View file

@ -229,7 +229,7 @@ in {
};
allFields = filterAttrs (n: v: !(isAttrs v)) attrs;
importantFields = filterAttrs (n: _:
(hasPrefix "$" n) || (hasPrefix "bezier" n)
(hasPrefix "$" n) || (hasPrefix "bezier" n) || (n == "plugin")
|| (cfg.sourceFirst && (hasPrefix "source" n))) allFields;
fields = builtins.removeAttrs allFields
(mapAttrsToList (n: _: n) importantFields);

View file

@ -3,6 +3,8 @@ $mod=SUPER
bezier=smoothOut, 0.36, 0, 0.66, -0.56
bezier=smoothIn, 0.25, 1, 0.5, 1
bezier=overshot, 0.4,0.8,0.2,1.2
plugin=/path/to/plugin1
plugin=/nix/store/00000000000000000000000000000000-foo/lib/libfoo.so
source=sourced.conf
animations {
animation=border, 1, 2, smoothIn
@ -27,8 +29,6 @@ input {
bindm=$mod, mouse:272, movewindow
bindm=$mod, mouse:273, resizewindow
bindm=$mod ALT, mouse:272, resizewindow
plugin=/path/to/plugin1
plugin=/nix/store/00000000000000000000000000000000-foo/lib/libfoo.so
# window resize
bind = $mod, S, submap, resize