Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 7, column: 9, }, end: Position { line: 7, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 24, }, }, }, ), Raw( PartRaw { content: "triggerhappy", span: Span { start: Position { line: 7, column: 25, }, end: Position { line: 7, column: 37, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "socket", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/run/thd.socket", span: Span { start: Position { line: 9, column: 13, }, end: Position { line: 9, column: 28, }, }, }, ), ], span: Span { start: Position { line: 9, column: 12, }, end: Position { line: 9, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 11, column: 16, }, end: Position { line: 11, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 11, column: 21, }, end: Position { line: 11, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "triggerhappy.conf", span: Span { start: Position { line: 11, column: 32, }, end: Position { line: 11, column: 49, }, }, }, ), ], span: Span { start: Position { line: 11, column: 31, }, end: Position { line: 11, column: 50, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 12, column: 1, }, end: Position { line: 12, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStringsSep", span: Span { start: Position { line: 12, column: 7, }, end: Position { line: 12, column: 26, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n", span: Span { start: Position { line: 12, column: 28, }, end: Position { line: 12, column: 30, }, }, }, ), ], span: Span { start: Position { line: 12, column: 27, }, end: Position { line: 12, column: 31, }, }, }, ), Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "keys", default: None, }, FunctionHeadDestructuredArgument { identifier: "event", default: None, }, FunctionHeadDestructuredArgument { identifier: "cmd", default: None, }, ], }, ), body: IndentedString( IndentedString { parts: [ Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStringsSep", span: Span { start: Position { line: 14, column: 13, }, end: Position { line: 14, column: 32, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "+", span: Span { start: Position { line: 14, column: 34, }, end: Position { line: 14, column: 35, }, }, }, ), ], span: Span { start: Position { line: 14, column: 33, }, end: Position { line: 14, column: 36, }, }, }, ), Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: BinaryOperation( BinaryOperation { left: String( String_ { parts: [ Raw( PartRaw { content: "KEY_", span: Span { start: Position { line: 14, column: 42, }, end: Position { line: 14, column: 46, }, }, }, ), ], span: Span { start: Position { line: 14, column: 41, }, end: Position { line: 14, column: 47, }, }, }, ), operator: Addition, right: Identifier( Identifier { id: "x", span: Span { start: Position { line: 14, column: 50, }, end: Position { line: 14, column: 51, }, }, }, ), }, ), span: Span { start: Position { line: 14, column: 38, }, end: Position { line: 14, column: 51, }, }, }, ), Identifier( Identifier { id: "keys", span: Span { start: Position { line: 14, column: 53, }, end: Position { line: 14, column: 57, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 14, column: 11, }, end: Position { line: 14, column: 59, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 14, column: 61, }, end: Position { line: 14, column: 69, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "press", span: Span { start: Position { line: 14, column: 72, }, end: Position { line: 14, column: 77, }, }, }, ), ], to: Integer( Integer { value: "1", span: Span { start: Position { line: 14, column: 80, }, end: Position { line: 14, column: 81, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hold", span: Span { start: Position { line: 14, column: 83, }, end: Position { line: 14, column: 87, }, }, }, ), ], to: Integer( Integer { value: "2", span: Span { start: Position { line: 14, column: 90, }, end: Position { line: 14, column: 91, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "release", span: Span { start: Position { line: 14, column: 93, }, end: Position { line: 14, column: 100, }, }, }, ), ], to: Integer( Integer { value: "0", span: Span { start: Position { line: 14, column: 103, }, end: Position { line: 14, column: 104, }, }, }, ), }, ), ], span: Span { start: Position { line: 14, column: 70, }, end: Position { line: 14, column: 107, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "event", span: Span { start: Position { line: 14, column: 110, }, end: Position { line: 14, column: 115, }, }, }, ), }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 14, column: 11, }, end: Position { line: 14, column: 118, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "cmd", span: Span { start: Position { line: 14, column: 120, }, end: Position { line: 14, column: 123, }, }, }, ), }, ), ], span: Span { start: Position { line: 14, column: 9, }, end: Position { line: 14, column: 126, }, }, }, ), span: Span { start: Position { line: 13, column: 8, }, end: Position { line: 14, column: 126, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 16, column: 7, }, end: Position { line: 16, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bindings", span: Span { start: Position { line: 16, column: 11, }, end: Position { line: 16, column: 19, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 12, column: 1, }, end: Position { line: 17, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 17, column: 7, }, end: Position { line: 17, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 17, column: 11, }, end: Position { line: 17, column: 22, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 12, column: 1, }, end: Position { line: 18, column: 3, }, }, }, ), ], span: Span { start: Position { line: 11, column: 51, }, end: Position { line: 18, column: 5, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "bindingCfg", span: Span { start: Position { line: 20, column: 3, }, end: Position { line: 20, column: 13, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [], }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 21, column: 5, }, end: Position { line: 21, column: 12, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "keys", span: Span { start: Position { line: 23, column: 7, }, end: Position { line: 23, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 23, column: 14, }, end: Position { line: 23, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 24, column: 9, }, end: Position { line: 24, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 24, column: 16, }, end: Position { line: 24, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 24, column: 22, }, end: Position { line: 24, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 24, column: 29, }, end: Position { line: 24, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 24, column: 35, }, end: Position { line: 24, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 25, column: 9, }, end: Position { line: 25, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 25, column: 23, }, end: Position { line: 25, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 25, column: 27, }, end: Position { line: 25, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "List of keys to match. Key names as defined in linux/input-event-codes.h", span: Span { start: Position { line: 25, column: 34, }, end: Position { line: 25, column: 107, }, }, }, ), ], span: Span { start: Position { line: 25, column: 33, }, end: Position { line: 25, column: 108, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 23, column: 23, }, end: Position { line: 26, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "event", span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 28, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 28, column: 15, }, end: Position { line: 28, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 29, column: 16, }, end: Position { line: 29, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enum", span: Span { start: Position { line: 29, column: 22, }, end: Position { line: 29, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "press", span: Span { start: Position { line: 29, column: 29, }, end: Position { line: 29, column: 34, }, }, }, ), ], span: Span { start: Position { line: 29, column: 28, }, end: Position { line: 29, column: 35, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "hold", span: Span { start: Position { line: 29, column: 37, }, end: Position { line: 29, column: 41, }, }, }, ), ], span: Span { start: Position { line: 29, column: 36, }, end: Position { line: 29, column: 42, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "release", span: Span { start: Position { line: 29, column: 44, }, end: Position { line: 29, column: 51, }, }, }, ), ], span: Span { start: Position { line: 29, column: 43, }, end: Position { line: 29, column: 52, }, }, }, ), ], span: Span { start: Position { line: 29, column: 27, }, end: Position { line: 29, column: 53, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "press", span: Span { start: Position { line: 30, column: 20, }, end: Position { line: 30, column: 25, }, }, }, ), ], span: Span { start: Position { line: 30, column: 19, }, end: Position { line: 30, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 31, column: 23, }, end: Position { line: 31, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 31, column: 27, }, end: Position { line: 31, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Event to match.", span: Span { start: Position { line: 31, column: 34, }, end: Position { line: 31, column: 49, }, }, }, ), ], span: Span { start: Position { line: 31, column: 33, }, end: Position { line: 31, column: 50, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 28, column: 24, }, end: Position { line: 32, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cmd", span: Span { start: Position { line: 34, column: 7, }, end: Position { line: 34, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 34, column: 13, }, end: Position { line: 34, column: 21, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 35, column: 9, }, end: Position { line: 35, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 35, column: 16, }, end: Position { line: 35, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 35, column: 22, }, end: Position { line: 35, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 36, column: 9, }, end: Position { line: 36, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 36, column: 23, }, end: Position { line: 36, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 36, column: 27, }, end: Position { line: 36, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "What to run.", span: Span { start: Position { line: 36, column: 34, }, end: Position { line: 36, column: 46, }, }, }, ), ], span: Span { start: Position { line: 36, column: 33, }, end: Position { line: 36, column: 47, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 34, column: 22, }, end: Position { line: 37, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 21, column: 15, }, end: Position { line: 39, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 20, column: 25, }, end: Position { line: 40, column: 4, }, }, }, ), span: Span { start: Position { line: 20, column: 16, }, end: Position { line: 40, column: 4, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 48, column: 3, }, end: Position { line: 48, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 50, column: 5, }, end: Position { line: 50, column: 13, }, }, }, ), Raw( PartRaw { content: "triggerhappy", span: Span { start: Position { line: 50, column: 14, }, end: Position { line: 50, column: 26, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 52, column: 16, }, end: Position { line: 52, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 53, column: 9, }, end: Position { line: 53, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 53, column: 16, }, end: Position { line: 53, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 53, column: 22, }, end: Position { line: 53, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 54, column: 9, }, end: Position { line: 54, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 54, column: 19, }, end: Position { line: 54, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 55, column: 9, }, end: Position { line: 55, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 55, column: 23, }, end: Position { line: 55, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 55, column: 27, }, end: Position { line: 55, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to enable the {command}`triggerhappy` hotkey daemon.\n", span: Span { start: Position { line: 56, column: 1, }, end: Position { line: 57, column: 9, }, }, }, ), ], span: Span { start: Position { line: 55, column: 33, }, end: Position { line: 57, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 52, column: 25, }, end: Position { line: 58, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 60, column: 7, }, end: Position { line: 60, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 60, column: 14, }, end: Position { line: 60, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 61, column: 9, }, end: Position { line: 61, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 61, column: 16, }, end: Position { line: 61, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 61, column: 22, }, end: Position { line: 61, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 62, column: 9, }, end: Position { line: 62, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nobody", span: Span { start: Position { line: 62, column: 20, }, end: Position { line: 62, column: 26, }, }, }, ), ], span: Span { start: Position { line: 62, column: 19, }, end: Position { line: 62, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 63, column: 9, }, end: Position { line: 63, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 63, column: 20, }, end: Position { line: 63, column: 24, }, }, }, ), ], span: Span { start: Position { line: 63, column: 19, }, end: Position { line: 63, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 64, column: 9, }, end: Position { line: 64, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 64, column: 23, }, end: Position { line: 64, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 64, column: 27, }, end: Position { line: 64, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "User account under which {command}`triggerhappy` runs.\n", span: Span { start: Position { line: 65, column: 1, }, end: Position { line: 66, column: 9, }, }, }, ), ], span: Span { start: Position { line: 64, column: 33, }, end: Position { line: 66, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 60, column: 23, }, end: Position { line: 67, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "bindings", span: Span { start: Position { line: 69, column: 7, }, end: Position { line: 69, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 69, column: 18, }, end: Position { line: 69, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 70, column: 9, }, end: Position { line: 70, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 70, column: 16, }, end: Position { line: 70, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 70, column: 22, }, end: Position { line: 70, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 70, column: 30, }, end: Position { line: 70, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "submodule", span: Span { start: Position { line: 70, column: 36, }, end: Position { line: 70, column: 45, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "bindingCfg", span: Span { start: Position { line: 70, column: 46, }, end: Position { line: 70, column: 56, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 71, column: 9, }, end: Position { line: 71, column: 16, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 71, column: 19, }, end: Position { line: 71, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 72, column: 9, }, end: Position { line: 72, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 72, column: 19, }, end: Position { line: 72, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "literalExpression", span: Span { start: Position { line: 72, column: 23, }, end: Position { line: 72, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "[ { keys = [\"PLAYPAUSE\"]; cmd = \"", span: Span { start: Position { line: 73, column: 1, }, end: Position { line: 73, column: 45, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 73, column: 1, }, end: Position { line: 73, column: 48, }, }, }, ), Raw( PartRaw { content: "{pkgs.mpc-cli}/bin/mpc -q toggle\"; } ]\n", span: Span { start: Position { line: 73, column: 1, }, end: Position { line: 74, column: 9, }, }, }, ), ], span: Span { start: Position { line: 72, column: 41, }, end: Position { line: 74, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 75, column: 9, }, end: Position { line: 75, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 75, column: 23, }, end: Position { line: 75, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 75, column: 27, }, end: Position { line: 75, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Key bindings for {command}`triggerhappy`.\n", span: Span { start: Position { line: 76, column: 1, }, end: Position { line: 77, column: 9, }, }, }, ), ], span: Span { start: Position { line: 75, column: 33, }, end: Position { line: 77, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 69, column: 27, }, end: Position { line: 78, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 80, column: 7, }, end: Position { line: 80, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 80, column: 21, }, end: Position { line: 80, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 81, column: 9, }, end: Position { line: 81, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 81, column: 16, }, end: Position { line: 81, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lines", span: Span { start: Position { line: 81, column: 22, }, end: Position { line: 81, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 82, column: 9, }, end: Position { line: 82, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 82, column: 19, }, end: Position { line: 82, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 83, column: 9, }, end: Position { line: 83, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 83, column: 23, }, end: Position { line: 83, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 83, column: 27, }, end: Position { line: 83, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Literal contents to append to the end of {command}`triggerhappy` configuration file.\n", span: Span { start: Position { line: 84, column: 1, }, end: Position { line: 85, column: 9, }, }, }, ), ], span: Span { start: Position { line: 83, column: 33, }, end: Position { line: 85, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 80, column: 30, }, end: Position { line: 86, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 50, column: 29, }, end: Position { line: 88, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 48, column: 13, }, end: Position { line: 90, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 95, column: 3, }, end: Position { line: 95, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 95, column: 12, }, end: Position { line: 95, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 95, column: 17, }, end: Position { line: 95, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 95, column: 21, }, end: Position { line: 95, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 97, column: 5, }, end: Position { line: 97, column: 12, }, }, }, ), Raw( PartRaw { content: "sockets", span: Span { start: Position { line: 97, column: 13, }, end: Position { line: 97, column: 20, }, }, }, ), Raw( PartRaw { content: "triggerhappy", span: Span { start: Position { line: 97, column: 21, }, end: Position { line: 97, column: 33, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 98, column: 7, }, end: Position { line: 98, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Triggerhappy Socket", span: Span { start: Position { line: 98, column: 22, }, end: Position { line: 98, column: 41, }, }, }, ), ], span: Span { start: Position { line: 98, column: 21, }, end: Position { line: 98, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 99, column: 7, }, end: Position { line: 99, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "sockets.target", span: Span { start: Position { line: 99, column: 21, }, end: Position { line: 99, column: 35, }, }, }, ), ], span: Span { start: Position { line: 99, column: 20, }, end: Position { line: 99, column: 36, }, }, }, ), ], span: Span { start: Position { line: 99, column: 18, }, end: Position { line: 99, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "socketConfig", span: Span { start: Position { line: 100, column: 7, }, end: Position { line: 100, column: 19, }, }, }, ), Raw( PartRaw { content: "ListenDatagram", span: Span { start: Position { line: 100, column: 20, }, end: Position { line: 100, column: 34, }, }, }, ), ], to: Identifier( Identifier { id: "socket", span: Span { start: Position { line: 100, column: 37, }, end: Position { line: 100, column: 43, }, }, }, ), }, ), ], span: Span { start: Position { line: 97, column: 36, }, end: Position { line: 101, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 103, column: 5, }, end: Position { line: 103, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 103, column: 13, }, end: Position { line: 103, column: 21, }, }, }, ), Raw( PartRaw { content: "triggerhappy", span: Span { start: Position { line: 103, column: 22, }, end: Position { line: 103, column: 34, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 104, column: 7, }, end: Position { line: 104, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 104, column: 21, }, end: Position { line: 104, column: 38, }, }, }, ), ], span: Span { start: Position { line: 104, column: 20, }, end: Position { line: 104, column: 39, }, }, }, ), ], span: Span { start: Position { line: 104, column: 18, }, end: Position { line: 104, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 105, column: 7, }, end: Position { line: 105, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Global hotkey daemon", span: Span { start: Position { line: 105, column: 22, }, end: Position { line: 105, column: 42, }, }, }, ), ], span: Span { start: Position { line: 105, column: 21, }, end: Position { line: 105, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 106, column: 7, }, end: Position { line: 106, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 107, column: 9, }, end: Position { line: 107, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 107, column: 24, }, end: Position { line: 107, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "triggerhappy", span: Span { start: Position { line: 107, column: 29, }, end: Position { line: 107, column: 41, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/thd ", span: Span { start: Position { line: 107, column: 22, }, end: Position { line: 107, column: 51, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 107, column: 53, }, end: Position { line: 107, column: 67, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 107, column: 69, }, end: Position { line: 107, column: 72, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 107, column: 73, }, end: Position { line: 107, column: 77, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 107, column: 82, }, end: Position { line: 107, column: 86, }, }, }, ), ], span: Span { start: Position { line: 107, column: 81, }, end: Position { line: 107, column: 87, }, }, }, ), }, ), String( String_ { parts: [ Raw( PartRaw { content: "--user ", span: Span { start: Position { line: 107, column: 90, }, end: Position { line: 107, column: 108, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 107, column: 99, }, end: Position { line: 107, column: 102, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 107, column: 103, }, end: Position { line: 107, column: 107, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 107, column: 89, }, end: Position { line: 107, column: 109, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " --socket ", span: Span { start: Position { line: 107, column: 22, }, end: Position { line: 107, column: 120, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "socket", span: Span { start: Position { line: 107, column: 122, }, end: Position { line: 107, column: 128, }, }, }, ), }, ), Raw( PartRaw { content: " --triggers ", span: Span { start: Position { line: 107, column: 22, }, end: Position { line: 107, column: 141, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configFile", span: Span { start: Position { line: 107, column: 143, }, end: Position { line: 107, column: 153, }, }, }, ), }, ), Raw( PartRaw { content: " --deviceglob /dev/input/event*", span: Span { start: Position { line: 107, column: 22, }, end: Position { line: 107, column: 185, }, }, }, ), ], span: Span { start: Position { line: 107, column: 21, }, end: Position { line: 107, column: 186, }, }, }, ), }, ), ], span: Span { start: Position { line: 106, column: 23, }, end: Position { line: 108, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 103, column: 37, }, end: Position { line: 109, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 111, column: 5, }, end: Position { line: 111, column: 13, }, }, }, ), Raw( PartRaw { content: "udev", span: Span { start: Position { line: 111, column: 14, }, end: Position { line: 111, column: 18, }, }, }, ), Raw( PartRaw { content: "packages", span: Span { start: Position { line: 111, column: 19, }, end: Position { line: 111, column: 27, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 111, column: 30, }, end: Position { line: 111, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "singleton", span: Span { start: Position { line: 111, column: 34, }, end: Position { line: 111, column: 43, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 111, column: 45, }, end: Position { line: 111, column: 49, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeTextFile", span: Span { start: Position { line: 111, column: 50, }, end: Position { line: 111, column: 63, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 112, column: 7, }, end: Position { line: 112, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "triggerhappy-udev-rules", span: Span { start: Position { line: 112, column: 15, }, end: Position { line: 112, column: 38, }, }, }, ), ], span: Span { start: Position { line: 112, column: 14, }, end: Position { line: 112, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "destination", span: Span { start: Position { line: 113, column: 7, }, end: Position { line: 113, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/etc/udev/rules.d/61-triggerhappy.rules", span: Span { start: Position { line: 113, column: 22, }, end: Position { line: 113, column: 61, }, }, }, ), ], span: Span { start: Position { line: 113, column: 21, }, end: Position { line: 113, column: 62, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "text", span: Span { start: Position { line: 114, column: 7, }, end: Position { line: 114, column: 11, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "ACTION==\"add\", SUBSYSTEM==\"input\", KERNEL==\"event[0-9]*\", ATTRS{name}!=\"triggerhappy\", \\\n RUN+=\"", span: Span { start: Position { line: 115, column: 1, }, end: Position { line: 116, column: 17, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 116, column: 19, }, end: Position { line: 116, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "triggerhappy", span: Span { start: Position { line: 116, column: 24, }, end: Position { line: 116, column: 36, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/th-cmd --socket ", span: Span { start: Position { line: 115, column: 1, }, end: Position { line: 116, column: 58, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "socket", span: Span { start: Position { line: 116, column: 60, }, end: Position { line: 116, column: 66, }, }, }, ), }, ), Raw( PartRaw { content: " --passfd --udev\"\n", span: Span { start: Position { line: 115, column: 1, }, end: Position { line: 117, column: 7, }, }, }, ), ], span: Span { start: Position { line: 114, column: 14, }, end: Position { line: 117, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 111, column: 64, }, end: Position { line: 118, column: 6, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 95, column: 28, }, end: Position { line: 120, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 44, column: 1, }, end: Position { line: 122, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 122, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 122, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 122, column: 2, }, }, }, )