#!/bin/sh
# Ptap v 0.1 Dec 2009

# created by trapster
# Touchpad Tap Control
export touchpad="
<window title=\"Touchpad Tap Control\">
<vbox>
<text><label>X must be restarted to take effect</label></text>
<hbox>
  <button>
  <label> Enable Tapping</label>
        <action>sed -i '/MaxTapTime/s/0/225/g' /etc/X11/xorg.conf</action>
   </button>
   
   <button>
   <label> Disable Tapping</label>
        <action>sed -i '/MaxTapTime/s/225/0/g' /etc/X11/xorg.conf</action>
   </button>
   
   <button>
   <label> Restart X</label>
        <action>restartwm</action>
   </button>
   
   <button>
   <input file icon=\"gtk-quit\"></input>
        <label> QUIT</label>
        <action type=\"exit\">EXIT_NOW</action>
      </button>
</hbox> 


</vbox>
</window>"

gtkdialog3 --program touchpad --center
unset touchpad
