Touchpad
Bei einigen Laptops, etwa beim Thinkpad, ist das Touchpad mit kapazitativem Sensor ausgerüstet. Schädlicher Nebeneffekt: wer Text blind im Zehnfinger-System eintippt und versehentlich das Pad berührt, verschiebt den Cursor.
Der Befehl touchpad on schaltet das Touchpad scharf, touchpad off „legt es schlafen“. Kommandozeilentool touchpad:
#!/usr/bin/tclsh
foreach line [split [exec xinput list] \n] {
  if {[string match -nocase *TouchPad* $line]} then {
    regexp {id=([0-9]+)} $line match id
    exec xinput set-prop $id "Device Enabled"\
      [string is true $argv]
    exit 0
  }
}
exit 1
12.10.2022
<< | Heimatseite | Verzeichnis | Stichworte | Autor | >>