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 Robert Helgesson
parent be97e96dab
commit 0e2e443ff2
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 3 additions and 3 deletions

View file

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

View file

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