10 |
{ |
{ |
11 |
local MMINCLUDE |
local MMINCLUDE |
12 |
local CONFIG |
local CONFIG |
13 |
|
local file |
14 |
|
local ver |
15 |
|
|
16 |
MMINCLUDE="${MCORE_CONFIG_PATH}/fluxbox/mcore-menu-include" |
MMINCLUDE="${MCORE_CONFIG_PATH}/fluxbox/mcore-menu-include" |
17 |
CONFIG="${MROOT}/${MMINCLUDE}" |
CONFIG="${MROOT}/${MMINCLUDE}" |
18 |
clearconfig |
clearconfig |
19 |
|
for file in $(find ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/menu -type f) |
|
for file in ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/menu/* |
|
20 |
do |
do |
21 |
[[ ! -z ${MROOT} ]] && file=$(echo ${file} | sed "s:${MROOT}::") |
[[ ! -z ${MROOT} ]] && file=$(echo ${file} | sed "s:${MROOT}::") |
22 |
addconfig "[include] (${file})" |
addconfig "[include] (${file})" |
31 |
|
|
32 |
# fluxbox menu header |
# fluxbox menu header |
33 |
clearconfig |
clearconfig |
34 |
local ver="$(< ${MROOT}/etc/mageversion)" |
ver="$(< ${MROOT}/etc/mageversion)" |
35 |
addconfig "[begin] (mCore-${ver} #${MCORE_SERIAL})" |
addconfig "[begin] (${MCORE_DISTRIBUTION}-${ver} #${MCORE_SERIAL})" |
36 |
|
|
37 |
# add a newline (maybe there is no crlf in the header) |
# add a newline (maybe there is no crlf in the header) |
38 |
addconfig |
addconfig |
57 |
|
|
58 |
CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox/apps" |
CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox/apps" |
59 |
clearconfig |
clearconfig |
60 |
for file in ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart/* |
for file in $(find ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart -type f) |
61 |
do |
do |
62 |
addconfig "$(< ${file})" |
addconfig "$(< ${file})" |
63 |
done |
done |
127 |
# get_fluxbox_menuitem |
# get_fluxbox_menuitem |
128 |
get_fluxbox_menuitem() |
get_fluxbox_menuitem() |
129 |
{ |
{ |
130 |
local i |
list_files_in_directory ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/menu |
|
local item |
|
|
|
|
|
for i in $(find ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/menu -type f | sort) |
|
|
do |
|
|
item="${item} $(basename ${i})" |
|
|
done |
|
|
|
|
|
rvecho "${item}" |
|
131 |
} |
} |
132 |
|
|
133 |
help_fluxbox_theme() |
help_fluxbox_theme() |
169 |
|
|
170 |
case "${method}" in |
case "${method}" in |
171 |
system) |
system) |
172 |
for i in $(find ${MROOT}/${stylesdir} -mindepth 1 -maxdepth 1 | sort) |
list_files_in_directory -type d -mindepth 1 -maxdepth 1 ${MROOT}/${stylesdir} |
|
do |
|
|
value="${value} $(basename ${i})" |
|
|
done |
|
|
rvecho "${value}" |
|
173 |
;; |
;; |
174 |
|
|
175 |
current) |
current) |