.\" Man page generated from reStructuredText .\" by the Docutils 0.22.3 manpage writer. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "feedback-themes" "" "" "" .SH Name feedback-themes \- Theme configuration for feedbackd .SH DESCRIPTION .sp The feedback provided to the user for an event is determined by the currently active feedback theme. .sp Each theme consists of up to three profile sections named \fIfull\fP, \fIquiet\fP and \fIsilent\fP containing event names and their associated feedback. They can reference another theme via the \fIparent\-name\fP element to avoid repetition. If an event received by the daemon is not present in the currently active theme or its parent theme it will be ignored. .sp Each event maps to at most one feedback in each profile. The events in the theme are named according to the Event Naming Specifiaction \%\&. .sp There are two types of themes: \fIcustom\fP themes and \fIdevice\fP themes. They both use the same format but have different purpose. Custom themes are meant to tweak feebackd\(aqs output to the user\(aqs needs while device themes are meant to cater for hardware differences. Feedback themes use a JSON format that can be validated with \fBfbd\-theme\-validate(1)\fP\&. .sp For details on how to create or modify feedback themes see \fBfeedbackd\(aqs documentation\fP at \%\&. .SH Feedback types .sp To build a theme you can use several different feedback types: .INDENT 0.0 .IP \(bu 2 \fISound\fP: Plays a sound from the installed sound theme .IP \(bu 2 \fIVibraRumble\fP: A single rumble using the haptic motor .IP \(bu 2 \fIVibraPeriodic\fP: A periodic rumble using the haptic motor .IP \(bu 2 \fIVibraPattern\fP: A pattern specifying the rumbling of the haptic motor .IP \(bu 2 \fILed\fP: A LED blinking in a periodic pattern .UNINDENT .SS Sound feedback .sp Sound feedbacks specify an event name from a XDG sound theme. Sound themes are described in the \fBSound theme spec\fP at \% .INDENT 0.0 .IP \(bu 2 \fIevent\-name\fP: The sound event name to use. .IP \(bu 2 \fImedia\-role\fP: The media role to set played audio stream. Defaults to \fIevent\fP\&. .UNINDENT .sp \fISound\fP feedback is usually used in the \fIfull\fP profile section of the theme only. .SS VibraRumble feedback .sp The \fIVibraRumble\fP feedback uses a single property .INDENT 0.0 .IP \(bu 2 \fIcount\fP: The number of rumbles. .IP \(bu 2 \fIpause\fP: The pause between each rumble in ms. .IP \(bu 2 \fIduration\fP: The duration of the rumble in ms. .IP \(bu 2 \fImangitude\fP: The relative magnitude of the rumble (\fB[0, 1]\fP). .UNINDENT .sp \fIVibraRumble\fP feedback is usually used in the \fIquiet\fP profile section of the theme only. .SS VibraPattern feedback .sp The \fIVibraPattern\fP feedback has these properties .INDENT 0.0 .IP \(bu 2 \fImagnitudes\fP: The relative magnitude of each rumble \fB[0, 1]\fP as array of doubles. .IP \(bu 2 \fIdurations\fP: The durations of each rumble in ms as array of unsigned integers. .UNINDENT .sp Both arrays must have the same length. \fIVibraPattern\fP feedback is usually used in the \fIquiet\fP profile section of the the theme only. .SS Led feedback .sp The \fILed\fP feedback type uses two properties to specify the way a LED blinks. .INDENT 0.0 .IP \(bu 2 \fIcolor\fP: This specifies the color a LED should blink with. It supports the fixed color names \fIred\fP, \fIgreen\fP, \fIblue\fP and \fIwhite\fP as well as values in the RGB HEX format (\fI#RRGGBB\fP) where \fIRR\fP, \fIGG\fP and \fIBB\fP are two digit hex value between \fI00\fP and \fIFF\fP specifying the value of each component. E.g. \fI#00FFFF\fP corresponds to cyan color. .IP \(bu 2 \fIfrequency\fP: The LEDs blinkinig frequency in mHz. .UNINDENT .sp \fILed\fP feedback is usually used in the \fIsilent\fP profile section of the theme only. .SS See also .sp \fBfeedbackd(8)\fP \fBfbcli(1)\fP \fBfbd\-theme\-validate(1)\fP .\" End of generated man page.