rofi: modes optional (#7003)
Don't include the modes option if it hasn't been used.
This commit is contained in:
parent
cea975d46d
commit
c84396bda0
2 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
configuration {
|
||||
location: 0;
|
||||
modes: [ ];
|
||||
xoffset: 0;
|
||||
yoffset: 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue