Ubuntu :: Keyboard Shortcut For Moving A Window To A Specific Display
Feb 23, 2010
I noticed that while Compiz has every keyboard shortcut imaginable for moving windows between desktops, there's no shortcut for moving a window to a specific display when using dual monitors.
So far, I've found the best method is to use the command line automation tool: xdotool - [url]
Here's what I did:Test out the xdotool in a new terminal window using this command
Code:
This should move your terminal window 100 pixels in from the top left of the leftmost display.
Find out the top-left coordinates of your rightmost display by using the Nvidia X Server Settings tool in Main menu > Administration or via the terminal:
Code:
Go to X Server Display Configuration and click the rightmost Display in the layout section. Its position offset should be displayed in the position field. Make a note of these two numbers.
Create a script to move your window, either to the leftmost screen or the rightmost screen, using this code or similar:
Code:
Remember, the number at the end is an argument that denotes the display (1 for left, 2 for right). Assign a keyboard shortcut to your custom shortcut. Repeat for the right display. Now when you press the keyboard shortcut, the active window should be moved to either the left or right display!
In (Gnome) Ubuntu there is a keyboard shortcut Ctrl+Alt+Shift+(Up|Down|Left|Right) that allows the user to quickly move a window from one workspace to another. I've been looking for a similar way to accomplish this in (KDE) Kubuntu. I know that you can right-click on a window in the Task Manager and use "To Desktop" to move a window, but I'm just curious if the same thing can be accomplished with the keyboard.
When ctrl alt d or the icon on the bottom left corner is pressed, it sometimes doesn't show the desktop and instead restores hidden windows. Is there a way to access the desktop directly, without only one shortcut ? I was also wondering how useful are these hidden windows (sometimes, the icon in the application bar is bar after being idle for a while).
On my main PC (10.04) I have Alt+1,Alt+2 etc configured to jump to that specific workspace and ctrl+Alt+1,ctrl+alt+2 etc to move the focused window to the specific workspace and it works fine. Trying to replicate that on my netbook (11.04/unity) however fails. I can set the keyboard shortcuts up to switch to different workspaces but the shortcuts to move a window to a specific workspace just dont seem to work. The default RSI inducing default ctrl+shift+alt+(up,down,left & right) to move a window to an adjacent workspace does however. Is this specific to my install? If not how do i file a bug report?
This is probably a silly question but I couldn't yet find the answer and I guess someone else must have solved it already, so... How can I activate the keyboard shortcut ALT+SHIFT+TAB to switch to the previous window (As opposite to ALT+TAB)?I'm using gnome, I went to the keyboard shortcut panel, but I didn't know how to add a new action (one that is not already there).I also use another distro (Mandriva) on another computer, also with gnome and that key combination is already there, which is very useful for me.
is it possible (and how) to create keyboard shortcut/binding that would give window-focus back to Tilda terminal? Currently, it is necessary to LMB-click inside Tilda (or at least drag mouse-cursor over Tilda) to resume typing.
How to bring the "Type to search..." window into focus directly, not by switching to the "Windows view" first?Anybody knows the relevant keybord shortcut? I went though at a number of introductions to GNOME 3, and also examined various tabs at:
Is there a way to set a specific terminal command as a keyboard shortcut? I know gnome-terminal opens the terminal, but is there a way to make a keyboard shortcut that opens the terminal and runs top?(I don't like how cpu heavy gnome-system-monitor is)
in windows I can use Putty to create a shortcut which loads a predefined profiles to log into a specific server. How can I do it in Ubuntu? (Instead of click on the terminal icon to open it, type ssh
I recently switched from GNOME to xfce, and I can't get working a simple keyboard shortcut to ssh to another machine.
In GNOME, I made a launcher (which gnome-do found); the first time I ran the launcher I'd get an X11 popup asking for by ssh passphrase, and then it would be saved for the rest of the GNOME session, making logins nice and fast.
In xfce, a similar launcher opens a new xfce4-terminal, which asks for the passphrase every time. I made a keyboard shortcut to "ssh -X me@server" -- this open an X11 popup for the passphrase, but no terminal, because there is no "run in terminal" option for keyboard shortcuts.
I'd be okay with running "ssh-add" at every login, but it has to be system-wide, rather than attached to one terminal instance. Passphraseless ssh is an options but a creepy one.
I write a lot in French and I need the french accent on my ubuntu. How can I get the shortcuts I used in windows such as "alt+130" to work again? When I use them, either nothing happen or it changes my tabs in firefox and chrome, I haven't found how to override this. I don't seem to have found anything in keyboard shortcuts...
i set delete as a keyboard shortcut for the gnome-terminal accidentally and later changed it to ALT+T but now both DELETE and ALT+T open up a terminal its really annoying not to be able to use the delete key.....every time i press DELETE a terminal window opens up.
I am experiencing problems with keyboard shortcuts. It started to happen after I installed gnome shell and switched back to gdk. the most annoying part is that every single keyboard shortcut works except the most used one AKA "run a terminal"
first I thought it had something to do with shortcuts in compiz but no. I changed the keyboard shortcut for "run a terminal" to something wild like CTRL+SHIFT+ALT+N and it still doesn't work. That command is not doing anything... Can i add my custom commands to keyboard shortcuts and how?
Mod4' is my 'Super' key. I have assigned <Mod4>Tab to the 'launch panel main menu' shortcut command in the Ubuntu 10.10 keyboard shortcuts settings. However, whenever I press <Mod4>+Tab, my windows seem to switch as if I were pressing Alt+Tab. How can I disable this other unnecessary action for <Mod4>+Tab?
I frequently need to take screenshots of a game (flash-based, running inside a browser), in particular it's statistics screen which is shown when I hold the TAB key. The problem is, when I take a screenshot, either by pressing PrintScreen key or by pressing a custom-defined shortcut, the game responds to this keypress and hides its statistics screen, so the screenshot doesn't contain the information I need.I figured out how to overcome this using a custom application launcher icon; but this requires using the mouse which is rather inconvenient.define a shortcut that wouldn't be processed by the active application? Or maybe there's some screenshot utility that does this out of the box?
I am using secure delete to remove files from a Debian Linux PC. However, secure delete does not remove folders. This has lead me to look at writing a script that would move files to a predetermined folder for deletion. My plan is as follows:I have a folder on my desktop called shredder where I move the contents of the waste bin to. The script needs to identify all files within the folders and sub folders, within the shredder folder, and move each file to the shredder folder and then delete the folder. At this point secure delete can be used with a command like shred -v -u *.*on the shredder folder.The problem I have is in creating the code to move files from the different folders and then deleting the folders. Note that the names of the files, folders and subfolders will not always be known
I have Ubuntu 10.10 running on a partition off of my Win7 hard drive. The thing I really like about Windows 7 is when I hit windows key+left or win+right, the current window will snap over to the left half or right half of the screen, respectively.
First off, I have been quite clumsy lately. I recently poured water into my computer by accident; and it works somewhat fine, though the keys A and E do not work. At this point I am using an external keyboard, but since it's a laptop and I am using it at school, that is not what one would wish for. So, my question is; is there any way which will allow me to use the Keyboard Shortcuts to make a shortcut which will for example use ALT+Ctrl+<button> to write the letter A?
My second question is; Do anyone know what has happened with what I will describe in the following text; or perhaps recognice the problem and a solution? One of my friends has installed XUbuntu on his netbook. It has been running just fine; and for a while after he upgraded to 9.10, his computer went somewhat broke. It boots up fine, and it loads the login screen; but instead of being able to log in, it switches to a terminal. We have tried using it to log in, but as none of us are any good with the terminal we have not succeeded.
I have a bash shell script located at "/home/devin/.Scripts/script"
I want to attach it to a hot key, I go to "System > Preferences > Keyboard Shortcuts", click "Add", Type in a name, and under "Command" I put in "/home/devin/.Scripts/script", and then assign a key to it.
I have a keyboard shortcut (ALT+M) that I have set to minimize all active windows. Now when I set 'own_window yes' in the conkyrc file, it treats it as a window (what it is supposed to do) but when I use my shortcut it minimizes as well. Now in my docky bar, it does not appear. I have tried setting it to 'own_window no' but then my icons disappear fron my desktop and I have to refresh the desktop every time conky updates (each on sec) this is an absolute nuisance. I have the 'double_buffer yes' option set and that does stop the flickering that I was having but I still cant happily use conky.
I'm just wondering if anyone knows the command to access the menu bar, as in the file edit view bar, not the applications places system one. I'm trying to create a keyboard shortcut to access the menu bar and I need to know the command for this.
I want to make a keyboard shortcut that runs the following command:
Code: smplayer /tmp/Flash* This is to play things as ..... videos etc. in smplayer using vdpau instead of the laggy flashplayer
The wildcard * works in terminals, but not in the command of the shortcut or in the Alt-F2 launcher... Could anyone point me to what I could write instead?
I have a G15v1. After going through hoops and loops to get it working only to discover that you only needed to install g15daemon through the Ubuntu Software Center, I found myself with one big problem. I migrated from windows just now, and there, I had my macro keys(the extra ones) bound to CTRL+W, CTRL+T and to a simulated mouse-wheel scroll so I could navigate the web more easily. How would I go about doing that? I figured, if I used the System->Preferences->Keyboard Shortcuts thingy and bound my key, in my case XF86Launch5, to a command similar to "simulate keypress CTRL+W"(I know it's totally wrong, just to give you an idea), I might be able to get it working again. Only problem is, I can't find anything like that. Any of you has any clue about it? I googled but I only find C++/Java/coding related results, which are not exactly what I need to do.
I'd like to open a directory with the F12 key. I haven't any problem getting Keyboard Shortcuts to run programs, but cannot figure out how to have it open a directory.I tried making a link to the directory and using that, but still no go. Edit: The directory I want opens when I use its link Can't find anything on the net for this. Most just mention that we can create custom keyboard shortcuts. I tried using /home/directory/directorydesired, but no go.
Edit: The directory I want opens when I use the link
I created a bunch of keyboard shortcuts via "System > Preferences Keyboard Shortcuts," and they all work flawlessly except one: Nautilus. I just set it to run the command "nautilus" and it doesn't do anything. My GNOME panel launcher runs the same command just fine.