# \#shell

**URL:** https://community.folivora.ai/tag/shell/225.md

[Latest](https://community.folivora.ai/latest.md) · [Categories](https://community.folivora.ai/categories.md) · [Tags](https://community.folivora.ai/tags.md)

---

## [Dynamically set Focus Mode based on variable/user input](https://community.folivora.ai/t/dynamically-set-focus-mode-based-on-variable-user-input/43705)

<div class="topic-metadata">

**Author:** [@fortred2](https://community.folivora.ai/u/fortred2)\
**Replies:** 2\
**Last updated:** [May 20, 2025, 8:50am UTC](https://community.folivora.ai/t/dynamically-set-focus-mode-based-on-variable-user-input/43705 "2025-05-20T08:50:27Z")

</div>

Description of what you are sharing Problem I want to be able to set my current Focus Mode dynamically based on user input. e.g. shortcuts run "Set\_Focus\_Mode" \<\<\< "Work" shortcuts run "Set\_Focus\_Mode" \<\<\< "Reduce Inter…

---

## [Allow piping to stdin with runShellScript](https://community.folivora.ai/t/allow-piping-to-stdin-with-runshellscript/43656)

<div class="topic-metadata">

**Author:** [@Norpyx](https://community.folivora.ai/u/Norpyx)\
**Replies:** 0\
**Last updated:** [May 16, 2025, 5:22pm UTC](https://community.folivora.ai/t/allow-piping-to-stdin-with-runshellscript/43656 "2025-05-16T17:22:11Z")

</div>

Setting Environment Variables is great, but it has it's limitations. When passing complex data to a script, for instance, escaping becomes cumbersome and difficult. For instance, for a string with a semi-colon ";", ther…

---

## [Execute Shell Script / Task - Error when importing python module psycopg2 - «ModuleNotFoundError: No module named 'psycopg2.\_psycopg'»](https://community.folivora.ai/t/execute-shell-script-task-error-when-importing-python-module-psycopg2-modulenotfounderror-no-module-named-psycopg2-psycopg/27868)

<div class="topic-metadata">

**Author:** [@edyas](https://community.folivora.ai/u/edyas)\
**Replies:** 12\
**Last updated:** [July 28, 2022, 7:56am UTC](https://community.folivora.ai/t/execute-shell-script-task-error-when-importing-python-module-psycopg2-modulenotfounderror-no-module-named-psycopg2-psycopg/27868 "2022-07-28T07:56:13Z")

</div>

I use the function “Execute Shell Script / Task” to execute a python script. The python script imports the module psycopg2. Based on the discussion here, I have set a environment variable as follows: PYTHONPATH=/Libra…

---

## [Unable to get "Execute Shell Script / Task" to work](https://community.folivora.ai/t/unable-to-get-execute-shell-script-task-to-work/21317)

<div class="topic-metadata">

**Author:** [@jhildenbiddle](https://community.folivora.ai/u/jhildenbiddle)\
**Replies:** 2\
**Last updated:** [February 11, 2021, 2:58pm UTC](https://community.folivora.ai/t/unable-to-get-execute-shell-script-task-to-work/21317 "2021-02-11T14:58:38Z")

</div>

Love BTT. Hoping to get some assistance with the "Execute Shell Script / Task" action. I have written a shell script that toggles my VPN on/off and verified that it works as expected using the terminal. My intention is …

---

## [How to make BTT get the shell command's path from PATH?](https://community.folivora.ai/t/how-to-make-btt-get-the-shell-commands-path-from-path/18789)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://community.folivora.ai/u/NightMachinary)\
**Replies:** 0\
**Last updated:** [September 14, 2020, 8:21am UTC](https://community.folivora.ai/t/how-to-make-btt-get-the-shell-commands-path-from-path/18789 "2020-09-14T08:21:42Z")

</div>

I want to get the path of the shell from the PATH:
