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_F5="0000002*" # Brightness down
29 KEY_Fn_F6="0000002*" # Brightness up
30 KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
31 KEY_Fn_F8=("00000030" "00000031" "00000032") # XRandR
32 KEY_Fn_F9="00000012" # Task Manager
33 KEY_Fn_F10="00000013" # Mute
34 KEY_Fn_F11="00000014" # Volume Down
35 KEY_Fn_F12="00000015" # Volume Up
38 #################################################################
39 ### Match previous to functions
40 EEEPC_BLANK=$KEY_SILVER1
41 EEEPC_RESOLUTION=$KEY_SILVER2
42 EEEPC_USER1=$KEY_SILVER3
43 EEEPC_USER2=$KEY_SILVER4
45 EEEPC_SLEEP=$KEY_Fn_F1
46 EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
47 EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
48 EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
49 EEEPC_SCREEN_OFF=$KEY_Fn_F7
50 EEEPC_XRANDR_TOGGLE_0=${KEY_Fn_F8[0]}
51 EEEPC_XRANDR_TOGGLE_1=${KEY_Fn_F8[1]}
52 EEEPC_XRANDR_TOGGLE_2=${KEY_Fn_F8[2]}
53 EEEPC_TASKMAN=$KEY_Fn_F9
54 EEEPC_VOL_MUTE=$KEY_Fn_F10
55 EEEPC_VOL_DOWN=$KEY_Fn_F11
56 EEEPC_VOL_UP=$KEY_Fn_F12