Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: Daniel on February 03, 2011, 05:58:37 AM

Title: Personal keyboard shortcuts
Post by: Daniel on February 03, 2011, 05:58:37 AM
Hi,

I'm looking to add keyboard shortcuts to may TCL.
For example : F12 key to launch xterm.

How can i do that ?

And how can i have only MY configured shotchuts ? :)

Thanks
Daniel.
Title: Re: Personal keyboard shortcuts
Post by: curaga on February 03, 2011, 06:46:07 AM
Use a WM that lets you do so. The default FLWM doesn't have configurable keybindings.
Title: Re: Personal keyboard shortcuts
Post by: jls on February 03, 2011, 06:49:15 AM
u could use actkbd
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 03, 2011, 08:14:29 AM
:) thank you!

Is it possible with actkbd, without reboot, to activate or deactivate key just by changing the actkbd.conf ?

That would allow to lock or unlock keyboard, except some wanted key ?
:)

Daniel.
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 03, 2011, 09:41:21 AM
The others shortcuts are also active! :(

is it possible to remove all ? :)

Daniel.
Title: Re: Personal keyboard shortcuts
Post by: tinypoodle on February 03, 2011, 10:41:56 AM
This is fully particular to specific wm in use (as curaga already implied in Reply #1), so you should really specify which wm you are using.
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 03, 2011, 10:46:36 AM
I want the tinyest WM as possible!
I think FLWM is the best.

But, can i use actkbd without WM ?
for example, if i comment the .xsession "$DESKTOP" ... line ?

Thanks
Daniel.
Title: Re: Personal keyboard shortcuts
Post by: jls on February 03, 2011, 10:58:09 AM
do u know microcore?
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 03, 2011, 10:59:12 AM
yes :)

tcl 3.4 with X 7.5 ...
Title: Re: Personal keyboard shortcuts
Post by: tinypoodle on February 03, 2011, 05:17:44 PM
I for one fail to see the sense in a keyboard shortcut to launch an xterm in an X server session without window manager...
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 04, 2011, 04:19:11 AM
My application needs that.
And it's run! :)

My application runs on a machine. I don't want the users to go (and see) to OS!
No keyboard, no mouse ... but touchscreen.
No user problem.

Actualy, the machines are under ubuntu 8.04 or ubuntu 10.04.
I'm testing TCL in order to replace both OS.
If i can do the same, i will change.
The only differences may be sound configuration and Graphical driver (for best performances).
The rest will be managed by the applications.

For information:
now, i have to mask kernel boot messages ... and try with specific graphic drivers for both machines.

Thanks
Daniel.
Title: Re: Personal keyboard shortcuts
Post by: tinypoodle on February 04, 2011, 04:45:59 AM
I f you open more than 1 window without presence of a window manager, the windows become... unmanageable...
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 04, 2011, 05:00:38 AM
what does that means ?

I've got a firefox flash application, running with a java application (IP connexion).
Full screen for IHM ...
The user don't need any term or other window.

I sometimes need term to check the machine.
if i open a xterm, i don't notice anything bad!
But ... ?


If i use a WM, i will have to lock keyboard.
Is it possible dynamicaly ?
Depending of WM, will i loose graphics performances ?
(xfce4 or ?)
...

Thanks
Daniel.
Title: Re: Personal keyboard shortcuts
Post by: tinypoodle on February 04, 2011, 05:40:33 AM
You could not select which of the windows would take focus, and neither switch focus between them.

For the purpose you describe, wouldn't switching to a VT serve you better than firing up an xterm?
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 04, 2011, 06:10:07 AM
The focus is set by mouse coordinates.
I will try without, if the touchscreen does the same ?!?

why not ... but if it is ok with my touchscreen, i don't know why i can't continue like this ? :)

Thanks
Daniel.

PS: the only think i risk to have :
inactivate black screen.
xset -dpms
xset s off
seems to don't work :(
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 07, 2011, 08:46:14 AM
DPMS can be deactivated with xorg.conf.
I post parameters if needed.

Concerning keyboard shotcurts, it's running with actkbd.
(configuration if needed).
But the default shotcuts are also in use.

I will see how to remove then when i certainly compile kernel in order to remove lines printed at boot time.
And after i know how all is done, i will (if i find how) remode unused drivers, and set MY machine drivers.

Daniel.
Title: Re: Personal keyboard shortcuts
Post by: tinypoodle on February 07, 2011, 09:33:16 AM
'xset' should be able to handle DPMS dynamically without any xorg.conf or even without Xorg.
AFAIK, Xvesa in base has no DPMS support, while Xvesa.tcz does.
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 07, 2011, 10:04:41 AM
I use xorg.conf dpms configuration because i do comment the .xsession "$DESKTOP" ... line
and i have black screen, even if i have a start script with 'xset' used to don't have dpms.

Now, it's running like i want. :)

Thanks
Daniel.
Title: Re: Personal keyboard shortcuts
Post by: Daniel on February 09, 2011, 05:06:54 AM
Following with keyboard and actkbd ...

On my machine, the keyboard is plugged, and the associated event number is 5!

But, it is different on others machines, and others kbd.

How can i automaticaly détect the associated keyboard event to link to the actkbd daemon?
and with usb keyboard plugged ?
--> udev rule !?!

Thanks
Daniel.

PS:
with /proc/bus/input/devices, i can read the event number ...
is there other means of knowing that information ?