aboutsummaryrefslogtreecommitdiffstats
path: root/data/scripts/build_iconbar_db.sh
blob: 836a65f2382396130d3f1e18557c5667aacb1beb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

DB=$1"/.e_iconbar.db"
BIT=$1"/.e_iconbar.bits.db"

setup ()
{
  PREFIX="/usr/local"
  SYSIC="/usr/share/pixmaps"
  USRIC=$HOME"/stuff/icons"
  NUM=0
  rm -f $DB
}

finish ()
{
  edb_ed $DB add "/icons/count" int $NUM
}

icon ()
{
  e_img_import "$1" $DB":""/icons/"$NUM"/image"
  edb_ed $DB add "/icons/"$NUM"/exec" str "$2"
  NUM=$[ $NUM + 1 ];
}

setup

icon $SYSIC"/gnome-term.png" "Eterm"
icon $SYSIC"/gnome-ccdesktop.png" "sylpheed"
icon $SYSIC"/netscape.png" "netscape"
icon $USRIC"/mozilla.png" "mozilla"
icon $SYSIC"/gnome-irc.png" "xchat"
icon $SYSIC"/gnome-gimp.png" "gimp"
icon $SYSIC"/mc/gnome-audio.png" "xmms"
icon $USRIC"star_office.png" "/home/raster/.desktop/Office"

finish

cp -f $PREFIX"/share/enlightenment/data/iconbar/iconbar_bottom.bits.db" $BIT