Commit f7053b04 authored by Michael Liang's avatar Michael Liang
Browse files

le-interface: show Dash in Overview


Signed-off-by: default avatarMichael Liang <ml09@c3sl.ufpr.br>
parent 5fed61f0
#!/bin/bash
# Copyright (C) 2004-2012 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-edubar
#
# le-edubar 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 2
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
# Applies icon-theme, window-theme, theme, extesions, button-layout.
# Applies settings in Gnome 3
gsettings set org.gnome.desktop.wm.preferences theme Adwaita
gsettings set org.gnome.desktop.interface gtk-theme Adwaita
gsettings set org.gnome.desktop.interface icon-theme Gnome
gsettings set org.gnome.desktop.background picture-uri file:///usr/share/backgrounds/LE5.png
gsettings set org.gnome.shell.overrides button-layout ':minimize,maximize,close'
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
gsettings set org.gnome.desktop.lockdown disable-user-switching 'true'
gsettings set org.gnome.shell enabled-extensions "['hide-dash@zacbarton.com','le_search@le.c3sl.ufpr.br','Shut_Down_Menu@rmy.pobox.com','menuextra@c3sl.ufpr.br']"
#if [ -e "/var/lib/le-search/search.xml" ]; then
# gsettings set org.gnome.shell enabled-extensions "['le_search@le.c3sl.ufpr.br']"
#fi
# Applies settings in Fallback
if pgrep gnome-fallback; then
gconftool-2 --set /apps/metacity/general/button_layout --type string \ :minimize,maximize,close
gconftool-2 -t str -s /apps/metacity/general/theme Adwaita
gconftool-2 -t str -s /desktop/gnome/interface/gtk_theme Adwaita
gconftool-2 -t str -s /desktop/gnome/interface/icon_theme gnome
xcompmgr &
fi
const Lang = imports.lang;
const Main = imports.ui.main;
let hideDash;
// extension functions
function init() {
hideDash = new HideDash();
}
function enable() {
hideDash.enable();
}
function disable() {
hideDash.disable();
}
// our HideDash object
HideDash = function() {
this.init();
}
HideDash.prototype = {
init: function() {
this.observer = null;
// store the values we are going to override
this.old_x = Main.overview._viewSelector.actor.x;
this.old_width = Main.overview._viewSelector.actor.get_width();
},
enable: function() {
// global.log("enable hide-dash");
this.observer = Main.overview.connect("showing", Lang.bind(this, this.hide));
},
disable: function() {
// global.log("disable hide-dash");
Main.overview.disconnect(this.observer);
this.show();
},
hide: function() {
// global.log("show dash");
Main.overview._dash.actor.hide();
Main.overview._viewSelector.actor.set_x(0);
Main.overview._viewSelector.actor.set_width(Main.overview._group.get_width());
Main.overview._viewSelector.actor.queue_redraw();
},
show: function() {
// global.log("hide dash");
Main.overview._dash.actor.show();
Main.overview._viewSelector.actor.set_x(this.old_x);
Main.overview._viewSelector.actor.set_width(this.old_width);
Main.overview._viewSelector.actor.queue_redraw();
}
};
{
"_generated": "Generated by SweetTooth, do not edit",
"description": "If you find you dont use the dash or have a smaller screen you can use this extension to hide the dash and allow the windows and application tabs to have a close to full-screen area.",
"name": "Hide Dash",
"shell-version": [
"3.2",
"3.3.2",
"3.4",
"3.3.3",
"3.3.4",
"3.3.1"
],
"url": "https://github.com/zacbarton/gnome-shell-extension-hide-dash",
"uuid": "hide-dash@zacbarton.com",
"version": 6
}
\ No newline at end of file
[Desktop Entry]
Type=Application
Exec=/usr/share/gnome/autostart/start_theme.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[pt_BR]=config
Name=config
Comment[pt_BR]=
Comment=
const Lang = imports.lang;
const Main = imports.ui.main;
let hideDash;
// extension functions
function init() {
hideDash = new HideDash();
}
function enable() {
hideDash.enable();
}
function disable() {
hideDash.disable();
}
// our HideDash object
HideDash = function() {
this.init();
}
HideDash.prototype = {
init: function() {
this.observer = null;
// store the values we are going to override
this.old_x = Main.overview._viewSelector.actor.x;
this.old_width = Main.overview._viewSelector.actor.get_width();
},
enable: function() {
// global.log("enable hide-dash");
this.observer = Main.overview.connect("showing", Lang.bind(this, this.hide));
},
disable: function() {
// global.log("disable hide-dash");
Main.overview.disconnect(this.observer);
this.show();
},
hide: function() {
// global.log("show dash");
Main.overview._dash.actor.hide();
Main.overview._viewSelector.actor.set_x(0);
Main.overview._viewSelector.actor.set_width(Main.overview._group.get_width());
Main.overview._viewSelector.actor.queue_redraw();
},
show: function() {
// global.log("hide dash");
Main.overview._dash.actor.show();
Main.overview._viewSelector.actor.set_x(this.old_x);
Main.overview._viewSelector.actor.set_width(this.old_width);
Main.overview._viewSelector.actor.queue_redraw();
}
};
{
"_generated": "Generated by SweetTooth, do not edit",
"description": "If you find you dont use the dash or have a smaller screen you can use this extension to hide the dash and allow the windows and application tabs to have a close to full-screen area.",
"name": "Hide Dash",
"shell-version": [
"3.2",
"3.3.2",
"3.4",
"3.3.3",
"3.3.4",
"3.3.1"
],
"url": "https://github.com/zacbarton/gnome-shell-extension-hide-dash",
"uuid": "hide-dash@zacbarton.com",
"version": 6
}
\ No newline at end of file
......@@ -17,7 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
# USA.
user=whoami|cut -d- -f1
# Applies icon-theme, window-theme, theme, extesions, button-layout.
# Applies settings in Gnome 3
gsettings set org.gnome.desktop.wm.preferences theme Adwaita
......@@ -25,10 +26,12 @@ gsettings set org.gnome.desktop.interface gtk-theme Adwaita
gsettings set org.gnome.desktop.interface icon-theme Gnome
gsettings set org.gnome.desktop.background picture-uri file:///usr/share/backgrounds/LE5.png
gsettings set org.gnome.shell.overrides button-layout ':minimize,maximize,close'
gsettings set org.gnome.shell enabled-extensions "['hide-dash@zacbarton.com','le_search@le.c3sl.ufpr.br','Shut_Down_Menu@rmy.pobox.com','menuextra@c3sl.ufpr.br']"
#if [ -e "/var/lib/le-search/search.xml" ]; then
# gsettings set org.gnome.shell enabled-extensions "['le_search@le.c3sl.ufpr.br']"
#fi
gsettings set org.gnome.shell enabled-extensions "['le_search@le.c3sl.ufpr.br','Shut_Down_Menu@rmy.pobox.com','menuextra@c3sl.ufpr.br','le_search@le.c3sl.ufpr.br']"
if [ "$user" = "aluno" ]; then
gsettings set 'org.gnome.desktop.lockdown' 'disable-lock-screen' 'true'
gsettings set 'org.gnome.desktop.lockdown' 'disable-user-switching' 'true'
fi
# Applies settings in Fallback
if pgrep gnome-fallback; then
gconftool-2 --set /apps/metacity/general/button_layout --type string \ :minimize,maximize,close
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment