Commits

Moises Henriquez committed 843aae2

lxpanel ship its own default config

Comments (0)

Files changed (4)

var/vabs/lxpanel/src/configs/lxpanel/LXDE/config

+[Command]
+FileManager=pcmanfm %s
+Terminal=lxterminal -e %s
+Logout=lxde-logout

var/vabs/lxpanel/src/configs/lxpanel/LXDE/panels/panel

+# lxpanel <profile> config file. Manually editing is not recommended.
+# Use preference dialog in lxpanel to adjust config when you can.
+
+Global {
+    edge=bottom
+    allign=left
+    margin=0
+    widthtype=percent
+    width=100
+    height=26
+    transparent=0
+    tintcolor=#000000
+    alpha=0
+    autohide=0
+    heightwhenhidden=2
+    setdocktype=1
+    setpartialstrut=1
+    usefontcolor=0
+    fontsize=10
+    fontcolor=#ffffff
+    usefontsize=0
+    background=0
+    backgroundfile=/usr/share/lxpanel/images/background.png
+    iconsize=24
+    loglevel=2
+}
+
+Plugin {
+    type = space
+    Config {
+        Size=2
+    }
+}
+
+Plugin {
+    type = menu
+    Config {
+        image=/usr/share/pixmaps/menu5.png
+        system {
+        }
+        separator {
+        }
+        item {
+            command=run
+        }
+        separator {
+        }
+        item {
+            image=gnome-logout
+            command=logout
+        }
+    }
+}
+
+Plugin {
+    type = launchbar
+    Config {
+        Button {
+            id=firefox.desktop
+        }
+        Button {
+            id=pcmanfm.desktop
+        }
+        Button {
+            id=/usr/share/applications/lxterminal.desktop
+        }
+    }
+}
+
+Plugin {
+    type = space
+    Config {
+        Size=4
+    }
+}
+
+Plugin {
+    type = wincmd
+    Config {
+        image=window-manager
+        Button1=iconify
+        Button2=shade
+        Toggle=0
+    }
+}
+
+Plugin {
+    type = space
+    Config {
+        Size=4
+    }
+}
+
+Plugin {
+    type = space
+    Config {
+        Size=4
+    }
+}
+
+Plugin {
+    type = taskbar
+    expand=1
+    Config {
+        tooltips=1
+        IconsOnly=0
+        ShowAllDesks=0
+        UseMouseWheel=1
+        UseUrgencyHint=1
+        FlatButton=0
+        MaxTaskWidth=150
+        spacing=1
+        GroupedTasks=0
+    }
+}
+
+Plugin {
+    type = pager
+}
+
+Plugin {
+    type = tray
+}
+
+Plugin {
+    type = dclock
+    Config {
+        ClockFmt=%l:%M %p
+        TooltipFmt=%A %x
+        BoldFont=0
+        IconOnly=0
+        CenterText=0
+    }
+}
+

var/vabs/lxpanel/src/lxpanel.SlackBuild

 # Dont wipe distributed default config.... 
 mv $PKG/usr/share/lxpanel/profile/default/panels/panel \
 	$PKG/usr/share/lxpanel/profile/default/panels/panel.orig
-cat $CWD/panel.vl > $PKG/usr/share/lxpanel/profile/default/panels/panel
+
 # Install the default configuration for the LXDE profile
 # This will create a pre-configured panel for new users who want to use the
 # LXDE desktop
 mkdir -p $PKG/usr/share/lxpanel/profile/LXDE/panels
-cat $CWD/panel.vl > $PKG/usr/share/lxpanel/profile/LXDE/panels/panel
+mkdir -p $PKG/etc/xdg
+cp $CWD/configs/* $PKG/etc/xdg/
+cat $CWD/configs/lxpanel/LXDE/panels/panel > $PKG/usr/share/lxpanel/profile/LXDE/panels/panel
+cat $CWD/configs/lxpanel/LXDE/panels/panel > $PKG/usr/share/lxpanel/profile/default/panels/panel
 
 # Don't overwrite the default configuration files.
 for i in config panels/panel; do

var/vabs/lxpanel/src/panel.vl

-# lxpanel <profile> config file. Manually editing is not recommended.
-# Use preference dialog in lxpanel to adjust config when you can.
-
-Global {
-    edge=bottom
-    allign=left
-    margin=0
-    widthtype=percent
-    width=100
-    height=26
-    transparent=0
-    tintcolor=#000000
-    alpha=0
-    autohide=0
-    heightwhenhidden=2
-    setdocktype=1
-    setpartialstrut=1
-    usefontcolor=0
-    fontsize=10
-    fontcolor=#ffffff
-    usefontsize=0
-    background=0
-    backgroundfile=/usr/share/lxpanel/images/background.png
-    iconsize=24
-}
-
-Plugin {
-    type = space
-    Config {
-        Size=2
-    }
-}
-
-Plugin {
-    type = menu
-    Config {
-        image=/usr/share/pixmaps/menu5.png
-        system {
-        }
-        separator {
-        }
-        item {
-            command=run
-        }
-        separator {
-        }
-        item {
-            image=gnome-logout
-            command=logout
-        }
-    }
-}
-
-Plugin {
-    type = launchbar
-    Config {
-        Button {
-            id=firefox.desktop
-        }
-        Button {
-            id=pcmanfm.desktop
-        }
-        Button {
-            id=/usr/share/applications/lxterminal.desktop
-        }
-    }
-}
-
-Plugin {
-    type = space
-    Config {
-        Size=4
-    }
-}
-
-Plugin {
-    type = wincmd
-    Config {
-        image=window-manager
-        Button1=iconify
-        Button2=shade
-        Toggle=0
-    }
-}
-
-Plugin {
-    type = space
-    Config {
-        Size=4
-    }
-}
-
-Plugin {
-    type = space
-    Config {
-        Size=4
-    }
-}
-
-Plugin {
-    type = taskbar
-    expand=1
-    Config {
-        tooltips=1
-        IconsOnly=0
-        ShowAllDesks=0
-        UseMouseWheel=1
-        UseUrgencyHint=1
-        FlatButton=0
-        MaxTaskWidth=150
-        spacing=1
-        GroupedTasks=0
-    }
-}
-
-Plugin {
-    type = pager
-}
-
-Plugin {
-    type = tray
-}
-
-Plugin {
-    type = dclock
-    Config {
-        ClockFmt=%H:%M %p
-        TooltipFmt=%A %x
-        BoldFont=0
-        IconOnly=0
-        CenterText=0
-    }
-}
-