rofi: modes optional (#7003)

Don't include the modes option if it hasn't been used.
This commit is contained in:
Austin Horstman 2025-05-08 10:45:00 -05:00 committed by GitHub
parent cea975d46d
commit c84396bda0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -339,7 +339,6 @@ in
toRasi {
configuration = (
{
inherit modes;
font = cfg.font;
terminal = cfg.terminal;
cycle = cfg.cycle;
@ -347,6 +346,7 @@ in
xoffset = cfg.xoffset;
yoffset = cfg.yoffset;
}
// lib.optionalAttrs (modes != [ ]) { inherit modes; }
// cfg.extraConfig
);
# @theme must go after configuration but attrs are output in alphabetical order ('@' first)

View file

@ -1,6 +1,5 @@
configuration {
location: 0;
modes: [ ];
xoffset: 0;
yoffset: 0;
}