You are not logged in.

#1 2011-04-24 03:57:10

Padfoot
Member
Registered: 2010-09-03
Posts: 381

[Gnome 3] A couple of panel modifications for you

Hi,

I know there are a few people out there who want to modify the Gnome 3 panel in some way.

I have a couple of extensions available. The ideas for these actually came from http://blog.fpmurphy.com/2011/04/gnome- … sions.html, so they are not original. I have just packaged the mods for arch users.

1. Turn off the a11y (accessibility) icon on the panel (I know there are others like me who want this)

Download:  home.exetel.com.au/padfoot/downloads/no … .ui.tar.gz

Extract this to ~/.local/share/gnome-shell/extensions and then log out and back in to activate, or:

ALT + F2
restart

2. Change "Activities" to the Arch logo.

pacman -S archlinux-artwork
ln -s /usr/share/archlinux/icons/YOURICON /usr/share/pixmaps/distributor-logo.svg

Or, of course, just make sure you have a distributor-logo icon in your chosen icon theme.

Download home.exetel.com.au/padfoot/downloads/ac … .ui.tar.gz

Extract this to ~/.local/share/gnome-shell/extensions and then log out and back in to activate, or:

ALT + F2
restart

I have also changed the "clock" so when the date is shown it is not in US format, so instead of Sun Apr 24, 13:54, it is now Sun 24 Apr, 13:54. Working on a mod to do this without changing system files.

Cheers.

Last edited by Padfoot (2011-04-24 04:14:57)

Offline

#2 2011-04-24 04:16:18

JazzplayerL9
Member
Registered: 2006-03-31
Posts: 109

Re: [Gnome 3] A couple of panel modifications for you

I ended up doing the exact same thing to my panel but never got around to posting it on here.  Thanks for that...and I had used a different way of linking to the icon...yours is definitely more favorable.

Offline

#3 2011-04-28 10:08:37

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [Gnome 3] A couple of panel modifications for you

amazing how such a simple edit can make things look so much better, thank you

be sure to push that to the AUR if you can find the time, I expect many people will want these mods when gnome hits extra smile


Arch i686 on Phenom X4 | GTX760

Offline

#4 2011-04-28 10:26:49

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 134

Re: [Gnome 3] A couple of panel modifications for you

Btw, you can just type "r" instead of "restart" (source : http://live.gnome.org/GnomeShell/CheatSheet)


I believe in a world I can and do understand. A rational universe, explained through rational means.

Offline

#5 2011-04-29 00:33:01

caseyjp1
Member
From: Denver
Registered: 2009-12-22
Posts: 35
Website

Re: [Gnome 3] A couple of panel modifications for you

LeCrayonVert wrote:

Btw, you can just type "r" instead of "restart" (source : http://live.gnome.org/GnomeShell/CheatSheet)

This didn't work.  It requires this link:  https://live.gnome.org/GnomeShell/CheatSheet

Offline

#6 2011-04-29 01:33:14

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: [Gnome 3] A couple of panel modifications for you

The accessibility icon fix stopped working for me a couple of days ago (I think after an update). I used a slightly different fix, editing the file: /usr/share/gnome-shell/js/ui/panel.js

....
const STANDARD_TRAY_ICON_ORDER = ['a11y', 'display', 'keyboard', 'volume', 'network', 'battery'];
const STANDARD_TRAY_ICON_SHELL_IMPLEMENTATION = {
'a11y': imports.ui.status.accessibility.ATIndicator,
'volume': imports.ui.status.volume.Indicator,
'battery': imports.ui.status.power.Indicator,
'keyboard': imports.ui.status.keyboard.XKBIndicator

You can thus easily change the panel icon order too. To remove the Accessibility icon, delete 'a11y' from the TRAY_ICON_ORDER line, or comment it out of the following line (although I think that resulted in my Gnome not starting, YMMV).

This mod will also likely be overwritten by any relevant updates, but should persist as a semi-easy edit for the foreseeable future.

Last edited by sultanoswing (2011-04-29 01:34:48)


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#7 2011-04-29 04:25:22

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: [Gnome 3] A couple of panel modifications for you

I've managed to remove the app menu button (the thing next to the Activities hotspot in the upper left corner).  Since all it does is let me know what program is focused, I didn't really see the point in having it up there.  If you edit /usr/share/gnome-shell/js/ui/panel.js and add the lines

this._iconBox.hide();              
this._label.setText('');

At the end of the _sync function (around line 534 for me) the icon and text label will be gone.  If you click where they should be you still get the drop down menu, if you really want it.

Last edited by Yes (2011-04-29 04:26:11)

Offline

#8 2011-04-29 07:35:52

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [Gnome 3] A couple of panel modifications for you

@sultanoswing

The extensions are required to point to the correct version of gnome-shell. There was a recent update of the shell from 3.0.0 to 3.0.1. To get the extensions working again, edit the metadata.json file in the extension's folder and change the version.

It will now work again.
Alternatively, the links in the first post have the updated file already.

@stefanwilkens

Yes, I must get around to learning how to package for AUR. Presumably I will find out how on the wiki. But no point just yet, not until Gnome 3 is in extra. At the moment it's just too much of a moving target.

Cheers.

PS. Working on an extension for the panel to display your favourite apps (as set in the dock in overview) so you basically have launchers on the panel again.

Last edited by Padfoot (2011-04-29 07:37:48)

Offline

#9 2011-04-29 11:33:10

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [Gnome 3] A couple of panel modifications for you

@padfoot:
Good place to start: https://wiki.archlinux.org/index.php/AUR

That article will link you to pretty much everything you'll ever need. Obviously I'll be happy to do it for you if you can't find the time. Looking forward to the oncoming extension!


Arch i686 on Phenom X4 | GTX760

Offline

#10 2011-05-01 18:42:14

*vitali*
Member
Registered: 2009-12-20
Posts: 83

Re: [Gnome 3] A couple of panel modifications for you

How do I also remove the keyboard layout icon?
Panel.STANDARD_TRAY_ICON_SHELL_IMPLEMENTATION['keyboard'] = ''; doesn't seem to work

Offline

#11 2011-05-02 07:20:41

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [Gnome 3] A couple of panel modifications for you

@vitali

Can you paste your metadata.json and extension.js code here?

I can't test myself, as I don't have the keyboard icon. But I did try with the battery icon, that worked. Interestingly, when I hid the battery icon, the gnomepower manager applet of old suddenly appeared on my panel...hmmmmm.

That makes me think. When you added your code to hide the keyboard icon, did it move position? Could be the icon is hiding and old applet is now showing, just like the battery did for me.

Offline

#12 2011-05-02 18:39:10

*vitali*
Member
Registered: 2009-12-20
Posts: 83

Re: [Gnome 3] A couple of panel modifications for you

(just edited your files from a11y removal extension)

metadata.json

{
    "shell-version": ["3.0.1"],
    "uuid": "nokeyboard.icon@panel.ui",
    "name": "nokeyboard",
    "description": "Turn off the keyboard icon in the panel"
}

extension.js

const Panel = imports.ui.panel;

function main() {
    Panel.STANDARD_TRAY_ICON_SHELL_IMPLEMENTATION['keyboard'] = '';
}

Offline

#13 2011-05-02 22:03:10

raf_kig
Member
Registered: 2008-11-28
Posts: 143

Re: [Gnome 3] A couple of panel modifications for you

I've written an extension to inhibit the screensaver/display power management because it was annoying the hell out of me when watching flash videos...
In case anyone else suffers as I did ;-)

https://github.com/RaphaelKimmig/Gnome- … ation-Mode

Regards,

raf

Offline

#14 2011-05-04 08:38:22

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [Gnome 3] A couple of panel modifications for you

@vitali
That should work. Just to be certain (I'm sure you are) did you re-start the shell?

Alternatively, you might have the same situation I had with the battery icon. With your extension installed, did the keyboard icon move? Try clicking on the icon. Do you get a menu or the gnome 3 bubble?

If you get a menu, it seems there is another keyboard switching applet running which is revealed when you hide the gnome 3 one.

Offline

#15 2011-05-04 20:42:12

*vitali*
Member
Registered: 2009-12-20
Posts: 83

Re: [Gnome 3] A couple of panel modifications for you

Yeah you are right, it seems another applet is running. LookingGlass (not really sure how to use this tool) calls it "legacyTray"

Offline

#16 2011-05-05 01:45:02

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: [Gnome 3] A couple of panel modifications for you

Hello, I tried to replace the Activities with the Arch icon, and kind of worked. Instead of the arch icon I have the gnome foot icon. I tried doing it again and I get this error in my terminal:

[neruson@megatron ~]$ sudo ln -s /usr/share/archlinux/icons/archlinux-icon-crystal-16.svg /usr/share/pixmaps/distributor-logo.svg
Password: 
ln: failed to create symbolic link `/usr/share/pixmaps/distributor-logo.svg': File exists
[neruson@megatron ~]$ 

Any idea on how to fix this and replace the gnome icon with the arch one? Not that I have anything against Gnome, I obviously use it wink It's just that the gnome icon is gray on black and for aesthetic reasons I'd rather have the blue arch icon there.


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#17 2011-05-05 07:07:24

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [Gnome 3] A couple of panel modifications for you

@ Mr_ED-horsey

 
ln: failed to create symbolic link `/usr/share/pixmaps/distributor-logo.svg': File exists
[neruson@megatron ~]$ 

The error message shows you already have an icon called distributor-logo.svg in /usr/share/pixmaps

Remember, any icon called distributor-logo in your chosen icon theme will be used first. If none exists there, it will be taken from /usr/share/icons/hicolor, and failing that, /usr/share/pixmaps

So the easiest way to have your icon is to ensure you replace any distributor-logo icons in your chosen theme with it.

1. Look in /usr/share/icons to find the folder containing your theme, then make a local copy:

mkdir ~/.icons
cp -R /usr/share/icons/{theme} ~/.icons

2. Remove all instances of distributor-logo icons:

rm -R ~/.icons/{theme}/distributor-logo.*

3. Replace with your chosen icon. I can't show you code for this as there are many variations depending on your theme and chosen icon. Just remember to call the icon distributor-logo, and it goes in the places folder. An .svg is scalable (recommended choice as you only need 1 icon) otherwise it goes into the folder of corresponding size.

Offline

#18 2011-05-05 22:50:52

bignose
Member
Registered: 2009-10-30
Posts: 2

Re: [Gnome 3] A couple of panel modifications for you

I found an extension to modify the notification area.
It gives you the option to choose what status icons you want on the top bar.

Very usefull for some apps.

Checkout on:

http://bone.twbbs.org.tw/blog/archives/2148

I have tested and works.

Sorry i dint´t find a topic about  GNOME Shell extensions, so i post this here.

Offline

#19 2011-05-06 02:00:41

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: [Gnome 3] A couple of panel modifications for you

@ Padfoot, thanks. That worked perfectly.


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#20 2011-05-07 04:59:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Gnome 3] A couple of panel modifications for you

Moved to Applications & Desktop Environments


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#21 2011-06-09 15:17:51

MaTachi
Member
Registered: 2011-06-07
Posts: 52

Re: [Gnome 3] A couple of panel modifications for you

Worked great, thanks! My desktop just became even prettier. smile

Offline

#22 2011-09-22 17:04:51

compaq615
Member
Registered: 2010-04-19
Posts: 11

Re: [Gnome 3] A couple of panel modifications for you

Hey guys,

I have some trouble getting this working.
I downloaded the archlinux artwork, created the link from distributor-logo to an icon, and unpacked the TAR.gz file to the .../extensions directory.
I did not get any errors, but the word "activities" is still there, but not the Arch-logo.
Even when I check with the lookingglas (https://live.gnome.org/GnomeShell/LookingGlass), It does not show any extensions.

Do I need to install something else to get this going ?

Thx for the help!

Offline

#23 2011-09-23 06:32:10

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [Gnome 3] A couple of panel modifications for you

@compac615

It is most likely the shell version differring. But no need to worry, this extension is available in AUR:

https://aur.archlinux.org/packages.php?ID=49369

Cheers.

Offline

#24 2011-09-23 07:00:51

compaq615
Member
Registered: 2010-04-19
Posts: 11

Re: [Gnome 3] A couple of panel modifications for you

@Padfoot

Great, this does replace the word "activities" with a logo.
But, like Mr_ED-horsey above, I get the gnome-foot logo.
I'm trying to follow what was written above, but I'm stuck at finding the folder which contains my theme in "/usr/share/icons/"
How can I know which theme I'm using ?

Edit: I did a file search in my whole system, and the only instance of "distributor-logo.svg" is the Arch-logo I created following your process above.
Does this version of shell use a different name for the default logo ?

Last edited by compaq615 (2011-09-23 07:17:16)

Offline

#25 2011-09-23 07:42:20

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [Gnome 3] A couple of panel modifications for you

Look at the extension files in /usr/share/gnome-shell/extensions. The code in the .js file will tell you what to name your icon.

Then just replace that icon in your selected icon theme with your arch logo. Gnome Appearence Properties will show you your chosen icon theme.

Last edited by Padfoot (2011-09-23 07:42:55)

Offline

Board footer

Powered by FluxBB