If you are using a multi-monitor setup in Ubuntu, here are a few tips which should help you fix some annoyances, like:
get full screen flash videos to be displayed on any monitorget flash videos to remain full screen while working in the other desktopa tweak to move windows to a different display using keyboard shortcutshow to extend the wallpaper across monitors or use a different wallpaper for each monitor
Move window to a specific display using a keyboard shortcut
Ubuntu (with Compiz/Unity) lets you move a window to a specific virtual desktop using keyboard shortcuts, but by default, this doesn’t work if you want to move a window to a specific monitor.
There is, however, an easy way of easily moving windows to a specific display using keyboard shortcuts so here’s what you must do.
Firstly, install CCSM if it’s not already installed:sudo apt-get install compizconfig-settings-manager
Then open CompizConfig Settings Manager, search for the “Put” plugin (it’s under Window Management) and enable it. Then, click the plugin so we can change some of its settings.
On the “Bindings” tab, click on “Disabled” next to the “Put to Next Output” keyboard shortcut, check the “Enabled” box and then assign it a key combination that’s not already in use. I’ve used Ctrl + Tab (click on “Grab key combination” to set a keyboard shortcut). Then click ok and you’re done.
Now, focus a window and press the keyboard combination you’ve used above: the window should move to the other workspace. If you only have to monitors, this should be enough, as it moves any window from one monitor to the other. If you have more than 2 monitors, you can assign keyboard shortcuts for “Viewport Left” and “Viewport Right” and so on, under “Put to adjacent viewport”.
Get full screen flash videos to work on any monitor
In some cases (or maybe always?), full screen Flash videos show up on the primary monitor, even if you’ve clicked the full screen button while using some other monitor. The above solution works with these full screen Adobe Flash videos too: click a video, then press the key combination you’ve set up and the video should move to the other display.
So there you have it, now you can move the full screen flash videos on any monitor you want.
Get Flash videos to remain full screen when working (clicking) in the other desktop
The above solution fixes full screen Flash video showing up on the wrong display, but there’s another annoying issue with Flash: if you’re watching a full screen video on one monitor and want to work on another monitor, the flash video exists full screen. Basically, unless the full-screen flash video is focused, it exists full-screen.
There are some fixes and workarounds for this full screen Flash exiting when it’s unfocused too:
1. The first one is using an extension which resizes Flash videos to fill the whole browser window and you can then set the browser to full screen by pressing F11 or selecting View > Full screen:for Google Chrome / Chromium: MaximizeFlashfor Firefox: Flash Game Maximizer (the button to resize video to fit the whole browser window is on the addon bar so to show it, select View > Toolbars > Addon Bar). This extension doesn’t work properly with YouTube though but you can set YouTube to use HTML5 by going to http://youtube.com/html5After getting the video to fill the whole browser window, hit F11 or select View > Full screen
2. Below is another solution for this issue, that fixes Adobe Flash for any browser, except Google Chrome.
The reason flash videos exit full screen when clicking anywhere on the other monitor is because that’s the behaviour wanted by Adobe. Adobe Flash is not open source, but we can still modify its code using a tools such as GHex.
To install GHex in Ubuntu, use the following command:sudo apt-get install ghex
Now, find out where your Flash plugin is installed using the following commands:sudo updatedb
The “locate” command above should return the full path to libflashplayer.so. Copy it because you’ll need it for the next command:gksu ghex /path/to/libflashplayer.so
Where “/path/to/” is the path to libflashplayer.so you’ve copied above (usually it should be /usr/lib/flashplugin-installer/libflashplayer.so or /usr/lib/adobe-flashplugin/libflashplayer.so)
Now, editing a binary with GHex is tricky, so read everything carefully.