LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 02-07-2013, 11:20 AM   #1
Vexe
Member
 
Registered: Feb 2013
Posts: 36

Rep: Reputation: Disabled
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.
 
Old 02-07-2013, 11:38 AM   #2
Vexe
Member
 
Registered: Feb 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Sorry, maybe this is the wrong forum, didn't mean to post it in the newbie section.
 
Old 02-07-2013, 11:53 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
The correct way to move a thread to another forum is to report your own post (see the REPORT button in the lower-right corner of your posts) and ask a moderator to move it to a more appropriate forum. This one is being closed as a duplicate of http://www.linuxquestions.org/questi...os-4175449034/.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Best Linux Keyboard Shortcuts LXer Syndicated Linux News 0 08-24-2012 08:40 PM
Windows equivalent keyboard shortcuts in Ubuntu Linux hariks0 LinuxAnswers Discussion 3 06-23-2011 11:34 PM
LXer: PyWO - Python Window Organizer - Easily Move/Resize Windows Using Keyboard Shortcuts LXer Syndicated Linux News 0 10-04-2010 12:11 AM
LXer: Simple Code To Implement C's stat() function On Linux And Unix LXer Syndicated Linux News 0 03-03-2009 05:27 AM
Keyboard shortcuts in dialog windows Saquel Linux - Newbie 0 10-19-2005 06:35 PM


All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration