You are not logged in.

#1 2010-10-21 08:15:24

natostanco
Member
Registered: 2008-01-07
Posts: 126

scripts and hotkeys + hotekeys for calibration

I create a file rotate180.sh with written in it xrandr -o 2
so when i run it, the screen turn upsidedown, how to bind this to an hotkey?
also, how can i include a particular calibration for the touchscreen input? (because when i rotate te screens axes result inverted)
i want to create an hotkey that when pressed turn upsidedown the desktop and change the calibration of the touchscreen input to a certain value.

Last edited by natostanco (2010-10-23 09:37:26)

Offline

#2 2010-10-21 08:28:35

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: scripts and hotkeys + hotekeys for calibration

Your WM or DE should enable hotkey setting, but for a WM independent method you could use xbindkeys.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#3 2010-10-21 18:11:07

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: scripts and hotkeys + hotekeys for calibration

i use inittab to start kde, how to add xbindkeys to it? (because wiki said to add it to xinit.rc)

also how can i bind a key to change calibration values of my touchscreen?

Last edited by natostanco (2010-10-21 18:20:27)

Offline

#4 2010-10-22 09:31:38

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: scripts and hotkeys + hotekeys for calibration

No idea about the calibration keys - are they built into the device? If so, run xev and press them to see what gets generated. Also, xbindkeys -k is useful for that.
Does KDE have a key binding facility built in? That might be best, otherwise you could find your xbindkeys key stuff conflicting with KDE key combinations.

As for running xbindkeys, see this thread https://bbs.archlinux.org/viewtopic.php?id=33642 for some suggestions (just switch xbindkeys for xmodmap).


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#5 2010-10-22 18:10:27

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: scripts and hotkeys + hotekeys for calibration

Ok, i used  the shortcut app of kde to create 2 hotkeys to run xrandr -o 2 and xrandr -o 0.
Now I have to create hotkeys for switch cursor calibration...normally when i run xinput_calibrator and I calibrate shortcuts i get this

Calibrating EVDEV driver for "Cando      11.6 " id=10
        current calibration values (from XInput): min_x=0, max_x=18943 and min_y=0, max_y=10751

Doing dynamic recalibration:
        Setting new calibration data: -59, 18938, 118, 10646


--> Making the calibration permanent <--
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "Cando      11.6 "
        Option  "Calibration"   "-59 18938 118 10646"
EndSection

as you can see as soon as i calibrate the touchscreen it dynamically resets the new values, So how to bind a key to dynamically set new values?
I just want to be able to change calibration values from know values such as values i wrote above.

Offline

#6 2010-10-23 08:48:13

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: scripts and hotkeys + hotekeys for calibration

Sorry no idea about touchscreen stuff. You might want to try and change the subject now that that's the issue - hopefully someone who knows will spot it then. smile


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

Board footer

Powered by FluxBB