How to code/implement the Linux windows keyboard shortcuts in all distros?
Hi guys, this is really important to me!
Not sure I said it right, but basically the thing is, say in Ubuntu Unity, if you press Ctrl+Alt+Numpad Keys (with numlock off), the active foreground window in front of you will move accordingly, so if you press 6, the window will move to the right half of the screen, 4 to the left half, etc. If you press Alt+F7 you'll move the window, Alt+F8 you could resize it, and a lot of other cool shortcuts.
My question is, you know, there's a lot of other cool distros that don't have those shortcuts, like for example SliTaz, Vector (the one I'm on) and a lot others.
1- Can I write a script like, bash or python to do this? Maybe Linux API, which I read they're called POSIX. I googled that out, in a hope to find something like the MS documentation the WinAPI, but couldn't find any.
Linux
2- I figured that they're just global keyhooks and there must be some sort of source code for them, I looked for it, but couldn't find it.
Say I'm in my Unity, where can I find the files that has that source for the
keyhooks?
Please don't tell me to use some software that set the keyboard keys to do what I want, I don't want that, I want the code responsible for this so that I could implement that in all other Distros.
Any help would be REALLY appreciated, I'm a programmer and I use the keyboard much more than the mouse, and I really like to stay productive and fast all the time!
Note that I was able to write such a program in Windows using WinAPI, was fairly easy.
Thanks a lot in advance!
Last edited by Vexe; 02-07-2013 at 11:28 AM.
|