Difference between revisions of "Configure your multimedia keys"

From Linuxintro
imported>ThorstenStaerk
(Created page with "Start xev. Move your mouse pointer to the rectangle in it. Type a key. You get an output like this: <pre> KeyPress event, serial 34, synthetic NO, window 0x2c00001, root 0x1...")
 
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
Start xev. Move your mouse pointer to the rectangle in it. Type a key. You get an output like this:
+
Many keyboards have multimedia keys. Those keys typically allow you to increase/decrease, mute and unmute sound on your PC, but many more exist. Using these keys can make you more productive - instead of [[opening a console]] and typing [[command]], you just type a key and the associated application pops up.
  
<pre>
+
;Note: The following example works with KDE as desktop environment only
KeyPress event, serial 34, synthetic NO, window 0x2c00001,
 
    root 0x15d, subw 0x2c00002, time 229472, (55,47), root:(1315,731),
 
    state 0x0, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
 
    XLookupString gives 0 bytes:
 
    XmbLookupString gives 0 bytes:
 
    XFilterEvent returns: False
 
  
KeyRelease event, serial 34, synthetic NO, window 0x2c00001,
+
As an example, I have a key on my keyboard that pictures a calculator. Let's start it the [[program]] kcalc:
    root 0x15d, subw 0x2c00002, time 229558, (55,47), root:(1315,731),
 
    state 0x0, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
 
    XLookupString gives 0 bytes:
 
    XFilterEvent returns: False
 
</pre>
 
  
[[todo]]
+
* [[open a console]] and run the [[command]]
 +
systemsettings
 +
Select "Shortcuts and Gestures" -> Custom Shortcuts -> Edit -> New -> Global Shortcut -> Command/URL
 +
As trigger, press this key, as "Action" enter kcalc
 +
 
 +
= Lock your screen =
 +
To lock your screen under KDE you can use the command
 +
/usr/lib64/kde4/libexec/kscreenlocker --forcelock
 +
 
 +
= See also =
 +
* [[keyboard]]
 +
* [[find out where your configuration changes are stored]]
 +
* http://www.linux-club.de/viewtopic.php?f=24&t=116414
 +
* http://www.pclinuxos.com/forum/index.php?topic=83439.0;wap2

Latest revision as of 07:53, 6 January 2021

Many keyboards have multimedia keys. Those keys typically allow you to increase/decrease, mute and unmute sound on your PC, but many more exist. Using these keys can make you more productive - instead of opening a console and typing command, you just type a key and the associated application pops up.

Note
The following example works with KDE as desktop environment only

As an example, I have a key on my keyboard that pictures a calculator. Let's start it the program kcalc:

systemsettings

Select "Shortcuts and Gestures" -> Custom Shortcuts -> Edit -> New -> Global Shortcut -> Command/URL As trigger, press this key, as "Action" enter kcalc

Lock your screen

To lock your screen under KDE you can use the command

/usr/lib64/kde4/libexec/kscreenlocker --forcelock

See also