Move icons and hot corner of message tray on the left or in the middle. To choose the position (version 11) copy the org.gnome.shell.extensions.left-message-tray.gschema.xml file into /usr/share/glib-2.0/schemas/ and compile the schemas: glib-compile-schemas /usr/share/glib-2.0/schemas open dconf-editor go to org.gnome.shell.extensions.left-message-tray and choose left, middle or right.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Version | Status |
---|---|
11 | Active |
10 | Inactive |
9 | Active |
8 | Active |
7 | Active |
6 | Active |
5 | Active |
4 | Rejected |
3 | Active |
2 | Rejected |
1 | Rejected |
Do not add global variables.
/* Left Message Tray Move the message tray to the left side Copyright (C) 2012 Robytrevi <robytrevi@hotmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ function LeftMessageTray() { const St = imports.gi.St; const Main = imports.ui.main; const MessageTray = imports.ui.messageTray; this.enable = function(){ // Align summary items to the left Main.messageTray._summaryBin.x_align = St.Align.START } this.disable = function(){ // Align summary items to the right Main.messageTray._summaryBin.x_align = St.Align.END } } function init() { leftMessageTray = new LeftMessageTray() } function enable() { leftMessageTray.enable() } function disable() { leftMessageTray.disable() }
Now why did you do that... I was complaining about the implicit assignment to "leftMessageTray", if you were wondering. I'd just get rid of the LeftMessageTray class and just stick the bodies in the enable/disable functions.
/* Left Message Tray Move the message tray to the left side Copyright (C) 2012 Robytrevi <robytrevi@hotmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ const St = imports.gi.St; const Main = imports.ui.main; const MessageTray = imports.ui.messageTray; function LeftMessageTray() { } function init() { } function enable() { Main.messageTray._summaryBin.x_align = St.Align.START } function disable() { Main.messageTray._summaryBin.x_align = St.Align.END }