#### TPB CONFIGURATION FILE ### DEVICE SETTINGS ## NVRAM # Should define the nvram device from where the information about the key # states is read. Default is to try /dev/nvram, followed by /dev/misc/nvram. # #NVRAM /dev/misc/nvram ## POLLTIME # Defines the delay between polls in microseconds. Default is 1000. # POLLTIME 200000 ### KEYBINDINGS AND CALLBACK ## THINKPAD # String with command and options that should be executed when ThinkPad # button is pressed. It is possible to execute any program. # By default no command is executed. # THINKPAD /usr/X11R6/bin/xterm -sl 512 +sb -fa Vera -fs 10 -T xterm -e 'export SHELL=bash; cd ~; bash' ## FN # String with command and options that should be executed when Fn button is # pressed. This is only triggered, when Fn is released again and it was not used # for a key combination.By default no command is executed. # FN /usr/X11R6/bin/xlock -count 48 -erasemode no_fade -nice 19 -mode swarm -enablesaver +sound -timeelapsed -usefirst -timeout 10 -size 32 ## CALLBACK # String with command and options that should be executed each button press and # state change. tpb passes an identifier as first argument and the new state as # second argument to the callback. So you can do fancy things :) By default no # command is executed. Supported identifiers and states are: # # IDENTIFIER STATES/VALUE # thinkpad pressed # home pressed # search pressed # mail pressed # favorites pressed # reload pressed # abort pressed # backward pressed # forward pressed # fn pressed # zoom on, off # thinklight on, off # display lcd, crt, both # expand on, off # brightness PERCENT # volume PERCENT # mute on, off # ac_power connected, disconnected # powermgt_ac high, auto, manual # powermgt_battery high, auto, manual # CALLBACK /usr/local/bin/tpb_callback.sh ### X11 SETTINGS ## XEVENTS # Some of the special keys generate X11 events instead of changing the nvram. # TPB is able to grab those keys and run an application. However some people # like to use the X11 events through xmodmap or the like. This option turns off # the grabbing of the events. Affected keys are HOME, SEARCH, MAIL, FAVORITES, # RELOAD, ABORT, BACKWARD, FORWARD and FN. Default is on. # XEVENTS ON ### ON-SCREEN DISPLAY SETTINGS ## OSD # Show on-screen display for volume, mute and brightness. Possible values are # on and off. Default is on. # OSD ON ## OSDFONT # Defines the font for the on-screen display. You may use "xfontsel" to choose # one. Default is the default font of the xosd library. # OSDFONT -misc-*-*-*-*-*-20-*-*-*-*-*-*-* ## OSDCOLOR # Defines the color of the on-screen display. You may use "xcolors" to choose # one. Default is BLUE. # OSDCOLOR SlateBlue3 ## OSDTIMEOUT # Defines how long (in seconds) the on-screen display is shown after the last # keys was pressed. Default is 3. # OSDTIMEOUT 3 ## OSDOFFSET # For backward compatibility. Same as OSDVERTICAL. # OSDOFFSET 25 ## OSDSHADOW # Defines the offset of the font shadow in pixels. Default is 2. # OSDSHADOW 1 ## OSDSHADOWCOLOR # Defines the color of the shadow of the on-screen display. You may use # "xcolors" to choose one. Default is BLACK. # OSDSHADOWCOLOR BLACK ## OSDOUTLINE # Defines the width of the font outline in pixels. Default is 1. # OSDOUTLINE 0 ## OSDOUTLINECOLOR # Defines the color of the outline of the on-screen display. You may use # "xcolors" to choose one. Default is BLACK. # OSDOUTLINECOLOR BLACK ## OSDVERTICAL # Defines the offset from the top or bottom of the screen in pixels. Default is # 25. # OSDVERTICAL 16 ## OSDHORIZONTAL # Defines the offset from the left or right of the screen in pixels. Only # supported by xosd 2.0.0 and above. Default is 25. # OSDHORIZONTAL 8 ## OSDPOS # Defines where the osd is shown. Possible values are top, middle and bottom. # The value middle is only supported by xosd 2.0.0 and above. Default is bottom. # OSDPOS TOP ## OSDALIGN # Defines the alignment of the osd. Possible values are left, center and right. # Default is left. # OSDALIGN LEFT