removed bs-ng-extensions

updated nx-rc
two new gconf keys
parent e0f959c8
......@@ -18,7 +18,7 @@ export_result ()
echo -e "MODE=\"$MODE\"\
\nPREFIX=\"$PREFIX\"\
\nDATADIR=\"$PREFIX/share/bashstyle-ng/\"\
\nDATADIR_LIST=( code data rc/{,ascii,bin,dirinfo,extensions,functions,generator,internal,settings,styles,wizard} terminfo/{,b,m,n} vim/{,colors} )\
\nDATADIR_LIST=( code data rc/{,ascii,bin,dirinfo,functions,generator,internal,settings,styles,wizard} terminfo/{,b,m,n} vim/{,colors} )\
\nPROFILEDIR=\"/etc/profile.d/\"\
\nBINDIR=\"$PREFIX/bin\"\
\nLOCALEDIR=\"$PREFIX/share/locale/\"\
......
......@@ -11,7 +11,6 @@ DATA_FILES=( code/bsng.py:${DATADIR}/code
rc/settings/*:${DATADIR}/rc/settings
rc/styles/*:${DATADIR}/rc/styles
rc/wizard/*:${DATADIR}/rc/wizard
rc/extensions/*:${DATADIR}/rc/extensions
rc/generator/*:${DATADIR}/rc/generator
data/terminfo/b/*:${DATADIR}/terminfo/b
data/terminfo/m/*:${DATADIR}/terminfo/m
......
......@@ -82,7 +82,7 @@ install_bsng () {
remove_bsng () {
echo -e "${RED}Removing all files."
echo -e "${RED} [02/03] Removing all files."
for file in ${DATA_FILES[@]} ${LOCALE_FILES[@]} ${DOC_FILES[@]} \
${PC_FILES[@]} ${ICON_FILES[@]} ${PROFILE_FILES[@]} ${BIN_FILES[@]}; do
uninst "$file"
......
......@@ -29,7 +29,7 @@ installdirs_create ()
installdirs_remove ()
{
echo -e "${RED}Removing directories."
echo -e "${RED} [03/03] Removing directories."
rmdir -p --ignore-fail-on-non-empty $DESTDIR/$DATADIR
for directory in ${DATADIR_LIST[@]}; do
rmdir -p --ignore-fail-on-non-empty $DESTDIR/$DATADIR/$directory
......
......@@ -45,6 +45,28 @@
</locale>
</schema>
<schema>
<key>/schemas/apps/bashstyle/color/shell</key>
<applyto>/apps/bashstyle/color/shell</applyto>
<owner>bashstyle-ng</owner>
<type>bool</type>
<default>false</default>
<locale name="C">
<short>Color for PS2 PS3 and PS4</short>
<long>Whether to have extremely colorfull shell</long>
</locale>
</schema>
<schema>
<key>/schemas/apps/bashstyle/color/random</key>
<applyto>/apps/bashstyle/color/random</applyto>
<owner>bashstyle-ng</owner>
<type>bool</type>
<default>false</default>
<locale name="C">
<short>Color for PS2 PS3 and PS4</short>
<long>Whether to have random colors in colorshell</long>
</locale>
</schema>
<schema>
<key>/schemas/apps/bashstyle/color/ps234c</key>
<applyto>/apps/bashstyle/color/ps234c</applyto>
<owner>bashstyle-ng</owner>
......
#!/bin/bash
MODULES=( fruitxterm colorshell )
for mod in ${MODULES[@]}; do
source $BSNG_RC_DIR/extensions/$mod
done
case $1 in
"" | *help )
;;
*add )
MODE=add
shift
;;
*remove )
MODE=remove
shift
;;
esac
if [[ $MODE == "add" ]]; then
case $1 in
fruitxterm )
install_fruitxterm
if (( $? == 0 )); then
echo -e "${egreen}fruitxterm ${ewhite}installed sucessfully.\
\nrun \`fruitxterm' to try it out."
else echo -e "${ered}Something went wrong."
fi
;;
colorshell )
install_colorshell
if (( $? == 0 )); then
echo -e "${egreen}colorshell ${ewhite}installed sucessfully.\
\nstart a new session to try it out."
else echo -e "${ered}Something went wrong."
fi
;;
esac
elif [[ $MODE == "remove" ]]; then
case $1 in
fruitxterm )
remove_fruitxterm
if (( $? == 0 )); then
echo -e "${egreen}fruitxterm ${ewhite}uninstalled sucessfully."
else echo -e "${ered}Something went wrong."
fi
;;
colorshell )
remove_colorshell
if (( $? == 0 )); then
echo -e "${egreen}colorshell ${ewhite}uninstalled sucessfully."
else echo -e "${ered}Something went wrong."
fi
;;
esac
fi
tput sgr0
#!/bin/bash
install_colorshell () {
wget "http://www.nanolx.org/bashstyle-extensions/colorshell"
sudo install -m644 colorshell $BSNG_RC_DIR/
rm -f colorshell
}
remove_fruitxterm () {
rm -f $BSNG_RC_DIR/colorshell
}
#!/bin/bash
install_fruitxterm () {
wget "http://www.nanolx.org/bashstyle-extensions/fruitxterm"
sudo install -m755 fruitxterm $BSNG_BIN_DIR/
rm -f fruitxterm
xalias xterm fruitxterm
}
remove_fruitxterm () {
rm -f $BSNG_BIN_DIR/fruitxterm
xunalias xterm
}
......@@ -163,9 +163,9 @@ else
dbg_log source $BSNG_RC_DIR/styles/fallback-rc
fi
if [[ -e $BSNG_RC_DIR/colorshell ]]; then
dbg_msg $"BashStyle-NG Loading:" $"ColorShell Extension"
dbg_log source $BSNG_RC_DIR/colorshell
if [[ $(get_key color/shell) == true ]]; then
dbg_msg $"BashStyle-NG Starting:" $"ColorShell"
dbg_log colorshell
fi
dbg_msg $"BashStyle-NG Setting:" $"PS2 PS3 PS4"
......
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