Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/basic-input/input.client.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2282 by niro, Tue Jan 14 10:34:57 2014 UTC revision 2283 by niro, Tue Jan 14 15:07:31 2014 UTC
# Line 24  set_input_keyboard() Line 24  set_input_keyboard()
24  {  {
25   local value="${CLASS_ARGV[0]}"   local value="${CLASS_ARGV[0]}"
26   local rate   local rate
  local CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart/keyboard"  
27    
28   case ${value} in   case ${value} in
29   slow) rate="1000 10" ;;   slow) rate="1000 10" ;;
# Line 33  set_input_keyboard() Line 32  set_input_keyboard()
32   *) help_input_keyboard && return 1 ;;   *) help_input_keyboard && return 1 ;;
33   esac   esac
34    
35   clearconfig   ${MCORE_LIBDIR}/fluxbox-autostart --add --name keyboard --exec 'nohup xset r rate ${rate} &' --comment '${value}' &&
36   addconfig "# ${value}"   ${MCORE_LIBDIR}/fluxbox-rebuild-autostart
  addconfig "[startup] { nohup xset r rate ${rate} &}"  
   
  # rebuild autostart file  
  helper_rebuild_fluxbox_autostart  
37    
38   if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]   if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
39   then   then

Legend:
Removed from v.2282  
changed lines
  Added in v.2283