rofi: allow list values in extraConfig

This commit is contained in:
Austin Horstman
2026-04-28 10:11:06 -05:00
parent 9821396285
commit 8ec5a714db
3 changed files with 15 additions and 1 deletions

View File

@@ -102,7 +102,9 @@ let
# Either a `section { foo: "bar"; }` or a `@import/@theme "some-text"`
configType = with types; either sectionType str;
extraConfigType = with types; attrsOf (either sectionType configValueType);
extraConfigType =
with types;
attrsOf (either sectionType (either configValueType (listOf configValueType)));
rasiLiteral =
types.submodule {

View File

@@ -1,4 +1,5 @@
configuration {
combi-modes: [ "window","drun" ];
cycle: false;
drun {
display-name: "";
@@ -13,6 +14,7 @@ kb-primary-paste: "Control+V,Shift+Insert";
kb-secondary-paste: "Control+v,Insert";
location: 0;
modes: [ "drun","emoji","ssh","foo:bar" ];
modi: [ "run","drun","window","ssh" ];
run,drun {
display-name: "open:";
}

View File

@@ -19,8 +19,18 @@
}
];
extraConfig = {
combi-modes = [
"window"
"drun"
];
kb-primary-paste = "Control+V,Shift+Insert";
kb-secondary-paste = "Control+v,Insert";
modi = [
"run"
"drun"
"window"
"ssh"
];
drun = {
display-name = "";
};