Shop Mobile More Submit  Join Login
Hacked dock gnome extension by xeXpanderx Hacked dock gnome extension by xeXpanderx
*** UPDATE ***
A new version can be found here: [link]
*************


I hacked the dock gnome extension that you can find at [link] It is now possible to have it on bottom or on top.

*** You change the options in the file "extension.js". There is a section in that file called "User section" which may look like this: ***

// ### USER SECTION ### //
const DOCK_ENABLE_AUTOHIDE = true; //Values: true or false
const DOCK_POSITION = PositionMode.BOTTOM; //Values: PositionMode.TOP or PositionMode.BOTTOM
const DOCK_SIZE = 30;
// ### END USER SECTION ### //

I hope it is pretty straightforward on how to change the options.

*** How to install ***
You have to extract the files in your .local/share/gnome-shell/extensions directory (If you already installed the original dock, back it up and move it to another directory).

This works on Gnome 3.2.1, however I do not know if it works for earlier or newer versions. Tested on Slackware 13.37.

*** Info about my screenshot ***
Icon: Awoken
Wallpaper: [link]

### Changelog v.0.2 ###

The size of the dock was not updated properly when moving out with mouse, you had to point on dock do update the size. This is now fixed (for the dock with autohide disabled).

### Changelog v.0.3 ###

Fixed the initialization values. You had to cover the dock with mouse when starting the dock first time to make it work properly. This is now fixed as well.

### Changelog v.0.4 ###

Added a "User-section" where you can easily change the alignment and Enable/Disable autohide options. See info above.
Add a Comment:
 
:iconilnanny:
ilnanny Featured By Owner Jun 11, 2012  Hobbyist Digital Artist
Thanks :D
Reply
:iconilnanny:
ilnanny Featured By Owner May 1, 2012  Hobbyist Digital Artist
please update to 3.4 :D thanks :D
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner May 1, 2012  Hobbyist Interface Designer
I will do that in time when I install Arch Linux on my old laptop :).

But I think there is a simple hack (very ugly though) to get it on bottom for 3.4, but you have to confirm it for me cause I cannot test it myself (do not have Gnome on either of my computers).
Reply
:iconilnanny:
ilnanny Featured By Owner May 2, 2012  Hobbyist Digital Artist
I tried it on my netbook eeepc with archlinux and version 3.4 .. but it does not work.
We are all looking forward to an upgrade.
Thank you for your beautiful work. ;D
ps.
On Fedora, works perfectly:D
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Jun 9, 2012  Hobbyist Interface Designer
Uploaded a new version ;)
Reply
:iconilnanny:
ilnanny Featured By Owner Jun 11, 2012  Hobbyist Digital Artist
Yeppa!! is work fine now:D
Thanks for your work!
Reply
:iconilnanny:
ilnanny Featured By Owner May 1, 2012  Hobbyist Digital Artist
great work!!!:woohoo: thanks:D
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner May 1, 2012  Hobbyist Interface Designer
Thanks!
Reply
:iconilnanny:
ilnanny Featured By Owner May 2, 2012  Hobbyist Digital Artist
My Great Pleasure :D
Reply
:iconnamnguyenhoang7:
namnguyenhoang7 Featured By Owner May 1, 2012
Update to Gnome 3.4, please
Reply
:iconfaida:
faida Featured By Owner Feb 24, 2012
thanks
Reply
:iconminimalisticdesign:
minimalisticdesign Featured By Owner Feb 21, 2012
This is nice!
However it just puts the dock on the right here :-(


mainstream@dopamine-pc:~$ gnome-shell --version
GNOME Shell 3.3.5
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 21, 2012  Hobbyist Interface Designer
Yes, because this dock was hacked for Gnome 3.2.1.
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 21, 2012  Hobbyist Interface Designer
* Specifically for Gnome Shell 3.2.2.1
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 21, 2012  Hobbyist Interface Designer
And Gnome 3.2 is considered stable, so I do not intend to upgrade to the unstable Gnome 3.3.x version.
Reply
:iconminimalisticdesign:
minimalisticdesign Featured By Owner Feb 21, 2012
Ok ill try to update the extension, see what's changed and try to apply that to the new one.

THanks anyways
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 22, 2012  Hobbyist Interface Designer
I am not sure if the problem relies on the js file itself, but on the gsettings. I think gsettings (for Gnome 3.3 and 3.4) overrides the settings in the js file. Can you perhaps give me all the settings available by:

gsettings gsettings list-recursively
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 22, 2012  Hobbyist Interface Designer
I meant:

gsettings list-recursively
Reply
:iconthirstygnome:
THIRSTYGNOME Featured By Owner Feb 19, 2012  Hobbyist Interface Designer
this is classy
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 21, 2012  Hobbyist Interface Designer
Thanks.
Reply
:iconlarsg:
LarsG Featured By Owner Feb 17, 2012
is it possible to have the dock correspond with the shell theme?
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 17, 2012  Hobbyist Interface Designer
yep.
Reply
:iconlarsg:
LarsG Featured By Owner Feb 19, 2012
Could you please tell me how this can be done?
When i install this extension the dock just looks like the way it wold have done using the shell's default theme.
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 19, 2012  Hobbyist Interface Designer
And you have a good example on how to change the style of the dock here: [link] Check the "stylesheet.css".
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 19, 2012  Hobbyist Interface Designer
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 19, 2012  Hobbyist Interface Designer
You have to change the contents in your "stylesheet.css" for your dock extension.
Reply
:iconlarsg:
LarsG Featured By Owner Feb 20, 2012
Thanks! Gonna give it a try.
Reply
:iconpitkon:
pitkon Featured By Owner Feb 16, 2012   Interface Designer
I love your hacks! A fav!
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 16, 2012  Hobbyist Interface Designer
Thanks :)
Reply
:iconpitkon:
pitkon Featured By Owner Feb 16, 2012   Interface Designer
My pleasure :)
Reply
:iconlagadesk:
LaGaDesk Featured By Owner Feb 14, 2012  Hobbyist Interface Designer
Interesting! :)
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 16, 2012  Hobbyist Interface Designer
Thanks :D
Reply
:icondadexix86:
dadexix86 Featured By Owner Feb 13, 2012  Hobbyist Photographer
Hi! How can I enable the autohide?
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 13, 2012  Hobbyist Interface Designer
Hi, right now you can only do it in a dirty way because I have not had time to make the code more "friendlier". Anyway, this is what you have to do (assuming that you have the dock aligned to bottom):

edit file "extension.js", on line 271-272 you should see this:

//cornerY = monitor.y + monitor.height - this._spacing;
cornerY=monitor.y + (monitor.height-this._item_size-2*this._spacing);

uncomment line 271, and comment line 272, so above should now look like this:

cornerY = monitor.y + monitor.height - this._spacing;
//cornerY=monitor.y + (monitor.height-this._item_size-2*this._spacing);

And, on line 392-393, you should see this:

//Main.layoutManager.addChrome(this.actor, { affectsStruts: !DOCK_AUTOHIDE });
Main.layoutManager.addChrome(this.actor, { affectsStruts: DOCK_AUTOHIDE });

Again, uncomment the first one and comment the second one, so now it should look like this:

Main.layoutManager.addChrome(this.actor, { affectsStruts: !DOCK_AUTOHIDE });
//Main.layoutManager.addChrome(this.actor, { affectsStruts: DOCK_AUTOHIDE });

Sorry for those dirty steps, and hope it works!
Reply
:icondadexix86:
dadexix86 Featured By Owner Feb 13, 2012  Hobbyist Photographer
Yes, it works wonderfully!! :D

There's a autohide=true in the first part of the file, maybe you can just add a
if (autohide) then first_line else second_line
where I had to tweak it manually in those two parts :)
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 13, 2012  Hobbyist Interface Designer
I am really glad it worked!

Yes, and that variable (autohide) is really hard-coded, it is used everywhere, so it seems it needs to be always enabled. I have not checked exactly why.

Right now, the easiest solution is to just add another variable, like, ENABLE_TRUE_AUTOHIDE, and use that variable on those sections where you uncommented with an if-statement.

But, that will be later, I will be gone for a couple of days now :S
Reply
:iconguitwo:
GuiTwo Featured By Owner Feb 13, 2012
minimal: Y U SO MINIMALLY AMAZING???
haha very nice :thumbsup::D
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 13, 2012  Hobbyist Interface Designer
thanks :D
Reply
:iconguitwo:
GuiTwo Featured By Owner Feb 13, 2012
no problem (:
Reply
:iconsuprvillain:
SuprVillain Featured By Owner Feb 13, 2012  Hobbyist Artist
Thats is just Awesomely Awesome! Going to enable it on my Laptop!
But now i have to ask .. Link for Wallpaper Please also?
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 13, 2012  Hobbyist Interface Designer
Thanks! The link to my wallpaper is already on my info ;)
Reply
:iconsuprvillain:
SuprVillain Featured By Owner Feb 13, 2012  Hobbyist Artist
Must look again, was not paying attention it seems ... Thanks!
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 13, 2012  Hobbyist Interface Designer
No problem! :)
Reply
:iconalex3me:
ALEX3ME Featured By Owner Feb 13, 2012   Interface Designer
Good job mate :thumbsup: ;)
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 13, 2012  Hobbyist Interface Designer
thanks :)
Reply
:iconminteastwood:
minteastwood Featured By Owner Feb 13, 2012
nice idea , well done :D
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 13, 2012  Hobbyist Interface Designer
Thanks :D
Reply
:iconsunznk:
sunznk Featured By Owner Feb 12, 2012
My first theme
[link]
Reply
:iconxexpanderx:
xeXpanderx Featured By Owner Feb 13, 2012  Hobbyist Interface Designer
Thank you, and really nice! ;)
Reply
:iconsunznk:
sunznk Featured By Owner Feb 12, 2012
Good idea !
Reply
Add a Comment:
 
×
Download RAR download, 109 KB




Details

Submitted on
February 12, 2012
File Size
109 KB
Link
Thumb
Embed

Stats

Views
15,610
Favourites
41 (who?)
Comments
57
Downloads
2,260
×