File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 224
224
"select"
225
225
"up"
226
226
"down"
227
+ "nop"
227
228
] ;
228
229
} ;
229
230
} ;
232
233
default = null ;
233
234
} ;
234
235
236
+ mousebinds = mkOption {
237
+ type = nullOr (
238
+ listOf ( submodule {
239
+ options = {
240
+ button = mkOption {
241
+ type = str ;
242
+ description = ''
243
+ Mouse button name
244
+
245
+ Primary/Secondary/Middle or Unknown(<u32>) with key code for the mouse button.
246
+ '' ;
247
+ } ;
248
+ action = mkOption {
249
+ type = enum [
250
+ "close"
251
+ "select"
252
+ "up"
253
+ "down"
254
+ "nop"
255
+ ] ;
256
+ } ;
257
+ } ;
258
+ } )
259
+ ) ;
260
+ default = null ;
261
+ } ;
262
+
263
+
235
264
extraLines = mkOption {
236
265
type = nullOr lines ;
237
266
default = null ;
328
357
'' ) cfg . config . keybinds
329
358
} ],
330
359
'' ;
360
+
361
+ mousebinds =
362
+ if cfg . config . mousebinds == null then
363
+ ""
364
+ else
365
+ ''
366
+ mousebinds: [
367
+ ${
368
+ concatMapStringsSep "\n " ( x : ''
369
+ Mousebind(
370
+ button: "${ capitalize x . button } ",
371
+ action: ${ capitalize x . action } ,
372
+ ),
373
+ '' ) cfg . config . mousebinds
374
+ } ],
375
+ '' ;
331
376
in
332
377
{
333
378
assertions = [
382
427
plugins: ${ toJSON parsedPlugins } ,
383
428
${ optionalString ( cfg . config . extraLines != null ) cfg . config . extraLines }
384
429
${ keybinds }
430
+ ${ mousebinds }
385
431
)
386
432
'' ;
387
433
}
You can’t perform that action at this time.
0 commit comments