Skip to main content

Thread: HOW-TO: Build Unity with 'Dodge Windows' and minimize/unminimize behavior


the information in thread has been moved https://help.ubuntu.com/community/un...indowsbehavior

thread discussion of wiki page can found here
http://ubuntuforums.org/showthread.php?t=2012412

thread closed.


so, i've been running 12.04 since around beta 1, , 1 thing bothered me missing 'dodge windows' behavior. had gotten particular , used behavior disrupted workflow when migrated on 12.04.

there has been valiant effort recreate behavior: http://ubuntuforums.org/showthread.php?t=1936037. part, script works pretty well, wanted "real" option back. in bug report #930148, 1 user, damianatorrpm (around comment #141), has created couple patches revert canonical changes , re-add behavior source. applied patch latest release of unity (at time, it's 5.12.0) , works! not behavior work expected, option in ccsm , has no nasty side-effects.

feature ability able click program's icon on launcher , minimize/unminimize window. jonathan french (ojno), developer behind patch, has not made reality, got work in conjunction 'spread windows' functionality. he's set ppa contains latest unity , patch make easier end-users it.

make things easier, i've gone ahead , patched vanilla unity source incorporate both of these behaviors. furthermore, i've uploaded changes github. can see here: https://github.com/isaacj87/unity

relevant commits here:



so, without futher ado, let's started. open terminal window , follow steps below.

updated: new ppa installation method! choose 1 method or other, not both.

ppa method (recommended):

alright, guys...

now, realize novice users (or abhor terminal), building unity couple features seems kind of silly. so, decided sit down last night , try figure out packaging , ppas...

so, if hesitant trying before, can add ppa if feel more comfortable doing that.

note: since i'm running 32-bit, i've tested i386 packages. i'll need running 64-bit let me know if works okay.

note: if followed tutorial originally, please remove ~/.compiz-1 , 'staging' folder before this.

add ppa doing this:

code:
sudo apt-add-repository ppa:ikarosdev/unity-revamped
...then, run update:

code:
sudo apt-get update && sudo apt-get dist-upgrade
...that's it!

removal:

if you'd revert offical ubuntu packages, use ppa-purge. first, ensure installed:

code:
sudo apt-get install ppa-purge
...then, remove ppa:

code:
sudo ppa-purge ppa:ikarosdev/unity-revamped
i attempted best make "proper" packages, i'm no expert. use ppa @ own peril!

i'll try best keep these builds up-to-date official unity packages, can't make promises. luck, guys!

alternative method (compile source):

note: tried on fresh installed of ubuntu 12.04 32-bit. can't sure if it'll work on older or other versions.

first thing install dependencies needed grab source (from github) , build unity:

code:
sudo apt-get install git git-core
code:
sudo apt-get build-dep unity
now, we'll need place compile unity. create folder called 'staging' , dump in there. you're welcome put source wherever like, remember change accordingly tutorial:

code:
mkdir ~/staging
...now, move directory:

code:
cd ~/staging
okay, next step grab modified source github. while still in 'staging' directory, run command:

code:
git clone git://github.com/isaacj87/unity.git
once it's done pulling source, we'll need prepare our environment build. we'll create simple bash script , make executable:

code:
gedit unity.sh
...when blank gedit window opens, copy , paste following text file:

code:
#!/bin/bash  prefix=/home/yourusernamehere/staging  export xdg_data_dirs="$prefix/share:$xdg_data_dirs" export ld_library_path="$prefix/lib/" export pkg_config_path="$prefix/lib/pkgconfig/"
notice bolded text? you'll need change username (remove forum syntax!). once you've done that, save file , close window. let's make file executable , run it:

code:
chmod +x unity.sh
code:
./unity.sh
okay, let's build unity! we'll need create build folder compile. let's move unity source directory , create folder , move it:
code:
cd unity
code:
mkdir build && cd build
now, we'll prepare build, compile , install:
code:
cmake .. -dcmake_install_prefix=/home/yourusername/staging/ -dcmake_build_type=debug -dcompiz_plugin_install_type=local -dgsettings_localinstall=on
(remember change bolded text username! also, remove forum syntax!)
code:
make -j4
code:
make install
all done? once that's finished, go ahead , log out , in. ensure ccsm installed , go unity plugin configuration. turn on 'dodge windows' effect , should work. minimize application launcher , click icon again unminimize it. if multiple windows of same program opened, spread function should work usual.

warning!: when using this, not delete in staging folder. more specifically, not delete bin, include, lib, , share folders. have unwanted side-effects (i.e. compiz/unity keep crashing)!

removal:

if you'd revert "stock" unity, remove ~/.compiz-1 folder , should normal.

feel free leave questions, comments or concerns.

credits: damianatorrpm patch , jonathan french (ojno) wonderful minimize behavior code.

with of our friendly ubuntuforums admins , moderators, i've gone ahead added ubuntu wiki.

link: https://help.ubuntu.com/community/un...indowsbehavior

i've had launchpad account years now, haven't done it. later on, i'll see if can figure out how ppa , running make easier process.


Forum The Ubuntu Forum Community Other Discussion and Support Tutorials HOW-TO: Build Unity with 'Dodge Windows' and minimize/unminimize behavior


Ubuntu

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?