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