diff --git a/archive/chromium.inst b/archive/chromium.inst new file mode 100644 index 0000000..35e3efe --- /dev/null +++ b/archive/chromium.inst @@ -0,0 +1,26 @@ +#!/bin/bash +module_load notify +_ch=$(command -v _chromium) +if [[ $_ch ]]; then + ch=$(dirname "$_ch")/chromium + ## if chromium exits probably an update to so move again + msg="new version availabe, run: sudo mv $ch $_ch" + [[ -f $ch ]] && llog $msg && notify-send $msg + export CHROME_CONFIG_HOME="/opt/chromium" + # chmod +x $BASH_SHELL_HOST/all/modules/chromium.sh + ln -sf $BASH_SHELL_HOST/all/modules/chromium.sh /opt/bin/chromium + llog "chromium sucessfully set up on $HOSTNAME" + login_notify "chromium sucessfully set up on $HOSTNAME" + else +# echo no _chromium + ch=$(command -v chromium) + if [[ $ch ]];then + llog "chromium availabe, need to run this command and log in again" + login_notify "chromium availabe but need to run this command and log in again" + llog "sudo mv $ch $(dirname $ch)/_chromium" + login_notify "sudo mv $ch $(dirname $ch)/_chromium" + else + llog "Warning: ungoogled chromimum not installed on $HOSTNAME" + login_notify "Warning: ungoogled chromimum not installed on $HOSTNAME" + fi +fi \ No newline at end of file diff --git a/archive/vscode.inst b/archive/vscode.inst new file mode 100644 index 0000000..06cc58b --- /dev/null +++ b/archive/vscode.inst @@ -0,0 +1,6 @@ +#!/bin/bash +if [[ $(command -v code) ]]; then +export VSCODE_HOME="/opt/vscode" +chmod +x $BASH_SHELL_HOST/all/modules/vscode.sh +ln -sf $BASH_SHELL_HOST/all/modules/vscode.sh /opt/bin/vscode +fi \ No newline at end of file diff --git a/modules/chromium/ungoogled-install.sh b/modules/chromium/ungoogled-install.func similarity index 100% rename from modules/chromium/ungoogled-install.sh rename to modules/chromium/ungoogled-install.func diff --git a/modules/machine.sh b/modules/host-utils.mod similarity index 99% rename from modules/machine.sh rename to modules/host-utils.mod index 013829b..81ce8b4 100644 --- a/modules/machine.sh +++ b/modules/host-utils.mod @@ -37,4 +37,4 @@ function get_platform () { echo $PLATFORM -} +} \ No newline at end of file diff --git a/modules/tools b/modules/tools new file mode 120000 index 0000000..25a6ad0 --- /dev/null +++ b/modules/tools @@ -0,0 +1 @@ +/shell/any/host/tools \ No newline at end of file