forked from Lend27/linuxstuff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLXDEvolumekeymapping
43 lines (35 loc) · 1.23 KB
/
LXDEvolumekeymapping
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Create LXDE Fn Key Shortcut for Volume on Archlinux
By default, if you using LXDE desktop environment, you can brightness/volume up or down using Fn + Key. To make
these key work on LXDE you must edit some file.
Open File Manager , show hidden files.
open .config/openbox/lxde-rc.xml with text editor.
Then add this code before </keyboard> line:
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer set Master 5%+ unmute</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer set Master 5%- unmute</command>
</action>
</keybind>
<keybind key="XF86MonBrightnessDown">
<action name="Execute">
<command>xbacklight -20</command>
<startupnotify>
<enabled>yes</enabled>
<name>Decrease screen brightness</name>
</startupnotify>
</action>
</keybind>
<keybind key="XF86MonBrightnessUp">
<action name="Execute">
<command>xbacklight +20</command>
<startupnotify>
<enabled>yes</enabled>
<name>Increase screen brightness</name>
</startupnotify>
</action>
</keybind>
Save, logout, and login again, then test it out.