1 # Copyright 2009 Nicolas Bigaouette
2 # This file is part of acpi-eeepc-generic.
3 # http://code.google.com/p/acpi-eeepc-generic/
5 # acpi-eeepc-generic is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # acpi-eeepc-generic is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with acpi-eeepc-generic. If not, see <http://www.gnu.org/licenses/>.
20 KEY_SILVER1="0000001a" # Blank
21 KEY_SILVER2="0000001b" # Change resolution
22 KEY_SILVER3="0000001c" # User 1
23 KEY_SILVER4="0000001d" # User 2
26 KEY_Fn_F1="00000080" # Sleep
27 KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
28 KEY_Fn_F3="00000037" # Touchpad
29 KEY_Fn_F4="00000038" # Resolution
30 KEY_Fn_F5="0000002*" # Brightness down
31 KEY_Fn_F6="0000002*" # Brightness up
32 KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
33 KEY_Fn_F8="00000030" # XRandR
34 KEY_Fn_F9="00000012" # Task Manager
35 KEY_Fn_F10="00000013" # Mute
36 KEY_Fn_F11="00000014" # Volume Down
37 KEY_Fn_F12="00000015" # Volume Up
38 KEY_Fn_Space="00000039" # Space Bar
41 #################################################################
42 ### Match previous to functions
43 EEEPC_BLANK=$KEY_SILVER1
44 EEEPC_RESOLUTION=$KEY_SILVER2
45 EEEPC_USER1=$KEY_SILVER3
46 EEEPC_USER2=$KEY_SILVER4
48 EEEPC_SHE_TOGGLE=$KEY_Fn_Space
50 EEEPC_SLEEP=$KEY_Fn_F1
51 EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
52 EEEPC_TOUCHPAD_TOGGLE=$KEY_Fn_F3
53 EEEPC_ROTATE=$KEY_Fn_F4
54 EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
55 EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
56 EEEPC_SCREEN_OFF=$KEY_Fn_F7
57 EEEPC_XRANDR_TOGGLE=${KEY_Fn_F8[0]}
58 EEEPC_TASKMAN=$KEY_Fn_F9
59 EEEPC_VOL_MUTE=$KEY_Fn_F10
60 EEEPC_VOL_DOWN=$KEY_Fn_F11
61 EEEPC_VOL_UP=$KEY_Fn_F12