# \#python

**URL:** https://community.folivora.ai/tag/python/126.md

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

---

## [Kashi: Show Current Song Lyrics on Touch Bar (Spotify / iTunes / Youtube)](https://community.folivora.ai/t/kashi-show-current-song-lyrics-on-touch-bar-spotify-itunes-youtube/6301)

<div class="topic-metadata">

**Author:** [@nemobushido](https://community.folivora.ai/u/nemobushido)\
**Replies:** 51\
**Last updated:** [March 19, 2024, 4:29am UTC](https://community.folivora.ai/t/kashi-show-current-song-lyrics-on-touch-bar-spotify-itunes-youtube/6301 "2024-03-19T04:29:56Z")

</div>

Hi BTT community, This is my first BTT plugin/preset. Since the community is already so great at making visually pleasing presets, I thought I'd focus on function rather than form. As an audiophile, I wanted my project …

---

## [Touchbar Synced Lyric](https://community.folivora.ai/t/touchbar-synced-lyric/10498)

<div class="topic-metadata">

**Author:** [@maxen2019](https://community.folivora.ai/u/maxen2019)\
**Replies:** 28\
**Last updated:** [March 30, 2023, 1:34pm UTC](https://community.folivora.ai/t/touchbar-synced-lyric/10498 "2023-03-30T13:34:26Z")

</div>

I just implemented synced lyric on touchbar based on the idea of Kashi! Figured you might want this! Here is the github link: https://github.com/ChenghaoMou/touchbar-lyric In case you are wondering, I crawled a Chinese…

---

## [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…

---

## [btt-toggl: A touchbar widget for Toggl time tracking!](https://community.folivora.ai/t/btt-toggl-a-touchbar-widget-for-toggl-time-tracking/26519)

<div class="topic-metadata">

**Author:** [@klamike](https://community.folivora.ai/u/klamike)\
**Replies:** 0\
**Last updated:** [March 24, 2022, 8:58am UTC](https://community.folivora.ai/t/btt-toggl-a-touchbar-widget-for-toggl-time-tracking/26519 "2022-03-24T08:58:03Z")

</div>

Hi everyone! I wrote this Python script that lets you use your touchbar to log time with Toggl. It supports multiple workspaces/projects, tags, and even has caching to cut down on network requests/CPU load. https://gith…

---

## [\[Sharing\] One preset for ALL Apple wireless headphones (update to v1.1.1)](https://community.folivora.ai/t/sharing-one-preset-for-all-apple-wireless-headphones-update-to-v1-1-1/15826)

<div class="topic-metadata">

**Author:** [@Noon\_Chen](https://community.folivora.ai/u/Noon_Chen)\
**Replies:** 25\
**Last updated:** [November 1, 2021, 11:46pm UTC](https://community.folivora.ai/t/sharing-one-preset-for-all-apple-wireless-headphones-update-to-v1-1-1/15826 "2021-11-01T23:46:40Z")

</div>

Github repo: https://github.com/noonchen/BTT\_AppleWirelessHeadphone This preset shows the icon and battery info of your Apple wireless headphones on the touch bar, it will support ALL apple headphones and furture modes,…

---

## [\[Sharing\] MacUsage preset shows Network Speed and CPU usage (so far)](https://community.folivora.ai/t/sharing-macusage-preset-shows-network-speed-and-cpu-usage-so-far/16019)

<div class="topic-metadata">

**Author:** [@Noon\_Chen](https://community.folivora.ai/u/Noon_Chen)\
**Replies:** 1\
**Last updated:** [June 3, 2021, 10:02am UTC](https://community.folivora.ai/t/sharing-macusage-preset-shows-network-speed-and-cpu-usage-so-far/16019 "2021-06-03T10:02:22Z")

</div>

Github repo: https://github.com/noonchen/BTT\_MacUsage This preset displays network and CPU usage of EACH process on the Touch Bar. Functionality Network Show top processes that use most download or upload bandwidth in …

---

## [Accessing system information with ease using Python (battery, cpu, gpu, disk, memory, and network).](https://community.folivora.ai/t/accessing-system-information-with-ease-using-python-battery-cpu-gpu-disk-memory-and-network/9980)

<div class="topic-metadata">

**Author:** [@synchronizing](https://community.folivora.ai/u/synchronizing)\
**Replies:** 4\
**Last updated:** [November 24, 2020, 8:56pm UTC](https://community.folivora.ai/t/accessing-system-information-with-ease-using-python-battery-cpu-gpu-disk-memory-and-network/9980 "2020-11-24T20:56:16Z")

</div>

While working to create a complete redesign of the Touch Bar I came to the dismaying realization that there is no "one-solution-for-all" for easy access to critical system information. With this realization in mind I d…

---

## [Previously functioning Python script now returns "ModuleNotFoundError"](https://community.folivora.ai/t/previously-functioning-python-script-now-returns-modulenotfounderror/9144)

<div class="topic-metadata">

**Author:** [@nemobushido](https://community.folivora.ai/u/nemobushido)\
**Replies:** 6\
**Last updated:** [June 19, 2019, 4:57pm UTC](https://community.folivora.ai/t/previously-functioning-python-script-now-returns-modulenotfounderror/9144 "2019-06-19T16:57:52Z")

</div>

Description Shell Scripts are not able to find Python modules anymore. Previously (in Jan/Feb), this exact same Python script worked fine without errors, but since around March it stopped working, returning "ModuleNotFo…
