Editing Arch Teapot Notes 12-02-18

From Chaosdorf Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
== Multimedia Keys ==
== Multimedia Keys ==


We learned that multimedia keys are available by using <tt>xev</tt>. To use it, start <tt>xev | grep keycode</tt> and press the buttons in question.
We learned that multimedia keys are available by using ''showkey''. To use it, one has to go to a text terminal, start ''showkey'' and press the buttons in question.


Notice: ''if your window manager evaluates the pressed keycodes, nothing will show up.''
The shown keycodes should be placed in <tt>~/.Xmodmap</tt>
 
<source lang="bash">
The shown keycodes should be placed in <tt>~/.Xmodmap</tt> and loaded on X startup by <tt>xmodmap ~/.Xmodmap</tt>.
keycode 234 = XF86Back
 
keycode 233 = XF86Forwardpre
Example (ThinkPad X61):
keycode 144 = XF86AudioPrev
<source lang="lua">
keycode 164 = XF86AudioStop
keycode 113 = XF86AudioMute
keycode 162 = XF86AudioPlay
keycode 114 = XF86AudioLowerVolume
keycode 153 = XF86AudioNext
keycode 115 = XF86AudioRaiseVolume
keycode 160 = XF86AudioMute
keycode 148 = XF86Launch1 # ThinkVantage Button
keycode 174 = XF86AudioLowerVolume
keycode 163 = XF86AudioNext
keycode 176 = XF86AudioRaiseVolume
keycode 164 = XF86AudioPlay
keycode 165 = XF86AudioPrev
keycode 166 = XF86AudioStop
</source>
</source>
The terminal based program ''showkeys'' won’t work, since kernel keycodes differ from X11.
ArchWiki [https://wiki.archlinux.org/index.php/Xmodmap Xmodmap]
These keysyms can be used for your favorite window manager‘s configuration.
Example (awesome):
<source lang="lua">
  -- Multimedia Keys
    awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn('mpc -h localhost volume +1') end),
    awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn('mpc -h localhost volume -1') end),
    awful.key({ }, "XF86AudioMute", function () awful.util.spawn('mpc -h localhost volume 0') end),
    awful.key({ }, "XF86AudioNext", function () awful.util.spawn('mpc -h localhost next') end),
    awful.key({ }, "XF86AudioPrev", function () awful.util.spawn('mpc -h localhost prev') end),
    awful.key({ }, "XF86AudioPlay", function () awful.util.spawn('mpc -h localhost toggle') end)
</source>
== PulseAudio ==
PulseAudio is a sound system enabling us to control application volumes individually and use other computers soundcards over the network.
Recommended packages:
* pulseaudio (the daemon, required)
* pavucontrol (GTK based mixer application)
* paprefs (GTK based configuration tool)
* pulseaudio-alsa
With ''pulseaudio-alsa'', applications may use a virtual ALSA device for output. They show up as regular PulseAudio clients and there is an ALSA mixer channel to control the volume.
Note: in order to discover remote soundcards, one has to start ''avahi-daemon''!
[[Category:Arch Teapot]]
Please note that all contributions to Chaosdorf Wiki are considered to be released under the Attribution 3.0 Unported (see Chaosdorf Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)