diff --git a/assets/docs/User's Guide.md b/assets/docs/User's Guide.md index 73b60ebf..50586b98 100644 --- a/assets/docs/User's Guide.md +++ b/assets/docs/User's Guide.md @@ -159,17 +159,19 @@ The window 1, "Commbase", contains 4 panes: - Pane 4. It is the Commbase terminal or simply a user terminal that can be focused, used, and cleaned from the application. -The window 2, Editor", contains a single pane. +The window 2, "Timer", contains a single pane. -The window 3, "Timer", contains a single pane. +The window 3, "Server 1", contains a single pane. -The window 4, "Server 1", contains a single pane. +The window 3, "Server 1", contains a single pane that is disabled by default in the configuration file. + +The window 5, "Files 1", contains a single pane. The extra windows from 2 to 4 can be disabled or enabled as a group or separately, by changing their settings in the configuration file **config/app.conf**. To show or hide these windows, you can change the values assigned to the next default configuration variables: -`TMUX_EXTRA_WINDOWS_ON`, `TMUX_EXTRA_WINDOW_EDITOR_ON`, `TMUX_EXTRA_WINDOW_TIMER_ON`, `TMUX_EXTRA_WINDOW_SERVER1_ON`, and `TMUX_EXTRA_WINDOW_SERVER2_ON`. +`TMUX_EXTRA_WINDOWS_ON`, `TMUX_EXTRA_WINDOW_TIMER_ON`, `TMUX_EXTRA_WINDOW_SERVER1_ON`, and `TMUX_EXTRA_WINDOW_SERVER2_ON`, `TMUX_EXTRA_WINDOW_FILES1_ON`. You will find information about the variables in the section **5 Default Configuration Variables**. @@ -711,11 +713,6 @@ The default version of the file **app.conf** contains the next values: - `True` (Default): Set to True, it activates the extra windows feature in the Commbase tmux session. - `False`: Set to False, it deactivates the extra windows feature in the Commbase tmux session. -- **TMUX_EXTRA_WINDOW_EDITOR_ON**: - - Possible values: - - `True` (Default): Set to True, it activates the extra window Editor in the Commbase tmux session. - - `False`: Set to False, it deactivates the extra window Editor in the Commbase tmux session. - - **TMUX_EXTRA_WINDOW_TIMER_ON**: - Possible values: - `True` (Default): Set to True, it activates the extra window Timer in the Commbase tmux session. @@ -731,6 +728,11 @@ The default version of the file **app.conf** contains the next values: - `False` (Default): Set to False, it deactivates the extra window Server 2 in the Commbase tmux session. - `True`: Set to True, it activates the extra window Server 2 in the Commbase tmux session. +- **TMUX_EXTRA_WINDOW_FILES1_ON**: + - Possible values: + - `True` (Default): Set to True, it activates the extra window Files 1 in the Commbase tmux session. + - `False`: Set to False, it deactivates the extra window Files 1 in the Commbase tmux session. + - **TERMINAL_RED_BACKGROUND_COLOR_CODE_START**: - Possible values: - `1;41m`: This value enables bold or bright text in terminal emulators and set the background color to red. diff --git a/config/app.conf b/config/app.conf index fb45769f..ac2eef6e 100644 --- a/config/app.conf +++ b/config/app.conf @@ -9,10 +9,10 @@ VIDEO_CAPTURE_DEVICE_02_INDEX="1" STT_ENGINE_STRING="$PYTHON_ENV_VERSION $COMMBASE_APP_DIR/bundles/built-in/broker/commbase-stt-vosk-p/commbase_stt_vosk_p.py" TTS_ENGINE_STRING="$PYTHON_ENV_VERSION $COMMBASE_APP_DIR/bundles/built-in/broker/commbase-tts-pyttsx3/commbase_tts_pyttsx3.py --rate 150 --voice-index 17" TMUX_EXTRA_WINDOWS_ON="True" -TMUX_EXTRA_WINDOW_EDITOR_ON="True" TMUX_EXTRA_WINDOW_TIMER_ON="True" TMUX_EXTRA_WINDOW_SERVER1_ON="True" TMUX_EXTRA_WINDOW_SERVER2_ON="False" +TMUX_EXTRA_WINDOW_FILES1_ON="True" TERMINAL_RED_BACKGROUND_COLOR_CODE_START="1;41m" TERMINAL_GREEN_BACKGROUND_COLOR_CODE_START="1;42m" TERMINAL_YELLOW_BACKGROUND_COLOR_CODE_START="1;43m" @@ -80,4 +80,4 @@ SOUND_PENDING_TASKS_REMINDER="$COMMBASE_APP_DIR/bundles/built-in/broker/libcommb PENDING_TASKS_VERIFICATION_FREQUENCY_IN_SECS="3600" EXTERNAL_STORAGE_DRIVE_01_TAG="WD1" EXTERNAL_STORAGE_DRIVE_02_TAG="WD2" -DEV_PROJECT_DIRECTORY_NAME="YOUR_DEV_PROJECT_DIRECTORY_NAME_HERE" \ No newline at end of file +DEV_PROJECT_DIRECTORY_NAME="YOUR_DEV_PROJECT_DIRECTORY_NAME_HERE" diff --git a/data/.controller_message.json b/data/.controller_message.json index c80951be..14095cb7 100644 --- a/data/.controller_message.json +++ b/data/.controller_message.json @@ -1 +1 @@ -{"message": "well we're moving all we got the here"} \ No newline at end of file +{"message": "that are still alive"} \ No newline at end of file diff --git a/data/.previous_result_message.json b/data/.previous_result_message.json index 49fbfed4..aff92787 100644 --- a/data/.previous_result_message.json +++ b/data/.previous_result_message.json @@ -1 +1 @@ -{"message": "well we're moving all we got the here"} +{"message": "that are still alive"} diff --git a/data/.result_message.json b/data/.result_message.json index 49fbfed4..aff92787 100644 --- a/data/.result_message.json +++ b/data/.result_message.json @@ -1 +1 @@ -{"message": "well we're moving all we got the here"} +{"message": "that are still alive"} diff --git a/scripts/utilities/reset_app.conf/app.conf.default b/scripts/utilities/reset_app.conf/app.conf.default index fb45769f..ac2eef6e 100644 --- a/scripts/utilities/reset_app.conf/app.conf.default +++ b/scripts/utilities/reset_app.conf/app.conf.default @@ -9,10 +9,10 @@ VIDEO_CAPTURE_DEVICE_02_INDEX="1" STT_ENGINE_STRING="$PYTHON_ENV_VERSION $COMMBASE_APP_DIR/bundles/built-in/broker/commbase-stt-vosk-p/commbase_stt_vosk_p.py" TTS_ENGINE_STRING="$PYTHON_ENV_VERSION $COMMBASE_APP_DIR/bundles/built-in/broker/commbase-tts-pyttsx3/commbase_tts_pyttsx3.py --rate 150 --voice-index 17" TMUX_EXTRA_WINDOWS_ON="True" -TMUX_EXTRA_WINDOW_EDITOR_ON="True" TMUX_EXTRA_WINDOW_TIMER_ON="True" TMUX_EXTRA_WINDOW_SERVER1_ON="True" TMUX_EXTRA_WINDOW_SERVER2_ON="False" +TMUX_EXTRA_WINDOW_FILES1_ON="True" TERMINAL_RED_BACKGROUND_COLOR_CODE_START="1;41m" TERMINAL_GREEN_BACKGROUND_COLOR_CODE_START="1;42m" TERMINAL_YELLOW_BACKGROUND_COLOR_CODE_START="1;43m" @@ -80,4 +80,4 @@ SOUND_PENDING_TASKS_REMINDER="$COMMBASE_APP_DIR/bundles/built-in/broker/libcommb PENDING_TASKS_VERIFICATION_FREQUENCY_IN_SECS="3600" EXTERNAL_STORAGE_DRIVE_01_TAG="WD1" EXTERNAL_STORAGE_DRIVE_02_TAG="WD2" -DEV_PROJECT_DIRECTORY_NAME="YOUR_DEV_PROJECT_DIRECTORY_NAME_HERE" \ No newline at end of file +DEV_PROJECT_DIRECTORY_NAME="YOUR_DEV_PROJECT_DIRECTORY_NAME_HERE" diff --git a/src/app b/src/app index dc6ef3e8..4ec08bc0 100644 --- a/src/app +++ b/src/app @@ -102,30 +102,30 @@ app() { # In this section, activate/deactivate or add custom extra windows if [ "$TMUX_EXTRA_WINDOWS_ON" = "True" ]; then - if [ "$TMUX_EXTRA_WINDOW_EDITOR_ON" = "True" ]; then - # Window 1 - # Auto-create a new window 1 for a file manager or text editor - tmux new-window -t Commbase-0:2 -n "Files" && tmux send-keys " conda activate $CONDA_ENV_NAME_IF_EXISTS ; clear" C-m && sleep $time; - #tmux select-window -t 2 && tmux send-keys "vifm" C-m - fi - if [ "$TMUX_EXTRA_WINDOW_TIMER_ON" = "True" ]; then - # Window 2 - # Auto-create a new window 2 for a countdown timer of 25 mins and start it - tmux new-window -t Commbase-0:3 -n "Timer" && tmux send-keys " conda activate $CONDA_ENV_NAME_IF_EXISTS ; clear" C-m && sleep $time; - tmux select-window -t 3 && tmux send-keys " bash $COMMBASE_APP_DIR/src/default/broker/skill_scripts/bash/t/timers/skill_script_set_a_timer_of_1_to_129_minutes/skill_script_set_a_timer_of_1_to_129_minutes -m 25" C-m; + # Window 1 + # Auto-create a new window 1 for a countdown timer of 25 mins and start it + tmux new-window -t Commbase-0:2 -n "Timer" && tmux send-keys " conda activate $CONDA_ENV_NAME_IF_EXISTS ; clear" C-m && sleep $time; + tmux select-window -t 2 && tmux send-keys " bash $COMMBASE_APP_DIR/src/default/broker/skill_scripts/bash/t/timers/skill_script_set_a_timer_of_1_to_129_minutes/skill_script_set_a_timer_of_1_to_129_minutes -m 25" C-m; fi - + if [ "$TMUX_EXTRA_WINDOW_SERVER1_ON" = "True" ];then + # Window 2 + # Auto-create a new window 2 for a ssh connection to a server 1 + tmux new-window -t Commbase-0:3 -n "Server 1" && tmux send-keys " conda activate $CONDA_ENV_NAME_IF_EXISTS ; clear" C-m && sleep $time; + fi + + if [ "$TMUX_EXTRA_WINDOW_SERVER2_ON" = "True" ];then # Window 3 # Auto-create a new window 3 for a ssh connection to a server 1 - tmux new-window -t Commbase-0:4 -n "Server 1" && tmux send-keys " conda activate $CONDA_ENV_NAME_IF_EXISTS ; clear" C-m && sleep $time; + tmux new-window -t Commbase-0:4 -n "Server 2" && tmux send-keys " conda activate $CONDA_ENV_NAME_IF_EXISTS ; clear" C-m && sleep $time; fi - - if [ "$TMUX_EXTRA_WINDOW_SERVER2_ON" = "True" ];then + + if [ "$TMUX_EXTRA_WINDOW_FILES1_ON" = "True" ]; then # Window 4 - # Auto-create a new window for a ssh connection to a server 2 - tmux new-window -t Commbase-0:5 -n "Server 2" && tmux send-keys " conda activate $CONDA_ENV_NAME_IF_EXISTS ; clear" C-m && sleep $time; + # Auto-create a new window 4 for a directory/file manager or text editor + tmux new-window -t Commbase-0:5 -n "Files 1" && tmux send-keys " conda activate $CONDA_ENV_NAME_IF_EXISTS ; clear" C-m && sleep $time; + #tmux select-window -t 2 && tmux send-keys "vifm" C-m fi fi