Actkbd: Difference between revisions

imported>Samueldr
m Finishes up actkbd page
Pigs (talk | contribs)
m add category configuration
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:actkbd}}
{{DISPLAYTITLE:actkbd}}
<code>actkbd</code> is a keyboard shortcut daemon that works at the system level. It does so through reading the events directly from the input devices, thus working whether a graphical session is running or not.
<code>actkbd</code> is a keyboard shortcut daemon that works at the system level. It does so through reading the events directly from the input devices, thus working whether a graphical session is running or not.


Line 39: Line 38:
<pre>
<pre>
journalctl --unit display-manager.service -b0 | grep "Adding input device" | sed -e 's;.*config/udev: ;;' | sort | uniq
journalctl --unit display-manager.service -b0 | grep "Adding input device" | sed -e 's;.*config/udev: ;;' | sort | uniq
</pre>
This command will also list all available input devices, two lines per.
<pre>
cat /proc/bus/input/devices | grep "Name\|Handlers"
</pre>
</pre>


Line 51: Line 56:
It will report the keys this way:
It will report the keys this way:
<pre>
<pre>
fKeys: 33
Keys: 14
Keys: 14
Keys: 29+46
Keys: 29+46
Line 59: Line 65:
== Sample configuration ==
== Sample configuration ==


The following configuration will  
The following configuration, from the [[Backlight]] page will configure the brightness control keys to use <code>light</code> to control the brightness.


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 73: Line 79:


Additionally, the {{nixos:option|sound.mediaKeys.enable}} option will use <code>actkbd</code> to control the media volumes. See the configuration it generates for an additional example.
Additionally, the {{nixos:option|sound.mediaKeys.enable}} option will use <code>actkbd</code> to control the media volumes. See the configuration it generates for an additional example.
[[Category:Configuration]]