make-gnome-panel 2.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/sh
#
#    Copyright (C) 2008-2012  Rubén Rodríguez <ruben@trisquel.info>
#
#    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 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 St, Fifth Floor, Boston, MA  02110-1301 USA
#

20
VERSION=4
21 22 23

. ./config

24 25 26
#makes the panel translucid
#sed "105s/'none'/'color'/; s/rgba(255,255,255,.2)/rgba(000,000,000,.75)/" -i data/org.gnome.gnome-panel.toplevel.gschema.xml.in.in
#remove the arrot in the main menu button
27 28
sed 's/"tooltip", tooltip,/"tooltip", "Trisquel",/; s/"has-arrow", TRUE,/"has-arrow", FALSE,/' -i gnome-panel/panel-menu-button.c

29 30 31 32
#sed '/gnome-session /d' debian/control* 

rm debian/patches/41_classic_layout.patch
sed /classic_layout/d -i debian/patches/series
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

cat << EOF > data/panel-default-layout.layout
[Toplevel panel]
expand=true
orientation=bottom
size=44
y-bottom=0

[Object menu-bar]
object-iid=PanelInternalFactory::MenuButton
toplevel-id=panel
pack-type=start
pack-index=0

[Object home]
object-iid=PanelInternalFactory::Launcher
@instance-config/location="file:///usr/share/applications/home.desktop"
pack-index=10
pack-type=start
toplevel-id=panel

[Object abrowser]
object-iid=PanelInternalFactory::Launcher
@instance-config/location="file:///usr/share/applications/browser.desktop"
pack-index=20
pack-type=start  
toplevel-id=panel

[Object window-list]
object-iid=WnckletFactory::WindowListApplet
pack-index=30
pack-type=start
toplevel-id=panel

Ruben Rodriguez's avatar
Ruben Rodriguez committed
67 68 69 70 71 72
[Object notification-area]
object-iid=NotificationAreaAppletFactory::NotificationArea
pack-index=30
pack-type=end
toplevel-id=panel

73 74
[Object indicators]
object-iid=IndicatorAppletFactory::IndicatorApplet
75
toplevel-id=panel
76 77
pack-type=end
pack-index=20
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93

[Object clock]
object-iid=ClockAppletFactory::ClockApplet
pack-index=10
pack-type=end
toplevel-id=panel

[Object show-desktop]
object-iid=WnckletFactory::ShowDesktopApplet
pack-index=0
pack-type=end
toplevel-id=panel

EOF

# This patch allows @instance-config/location in the default layout
94
#patch -p1 < $DATA/gnome-panel-improved-default-layout-handling.patch
95 96 97 98

# We don't want to show the gnome-online-accounts stuff yet
patch -p1 < $DATA/hide-online-accounts-menu.patch

99 100 101
# Do not require alt or alt+supr key modifiers for showing menus on right click
patch -p1 < $DATA/no-mouse-modifier.patch

102 103 104 105
changelog "Changed default layout"

compile