# Terminal Output to Overlay?

**URL:** <https://community.folivora.ai/t/terminal-output-to-overlay/10421>\
**Category:** Configuration Help & General Discussion\
**Created:** [August 20, 2019, 12:28pm UTC](https://community.folivora.ai/t/terminal-output-to-overlay/10421 "2019-08-20T12:28:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![superficial](https://community.folivora.ai/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@superficial](https://community.folivora.ai/u/superficial)\
**Post date:** [August 20, 2019, 12:28pm UTC](https://community.folivora.ai/t/terminal-output-to-overlay/10421/1 "2019-08-20T12:28:58Z")

</div>

Hi, I have hopefully a quick question. I have written a small BTT script to change my network location from 'Home' to 'Automatic' and vice versa with a key combo. I'd like the new location to be displayed on the screen. Is that possible?

This is the shell script:

> if scselect 2\>&1 | grep '\*.\*Automatic' \>/dev/null 2\>&1; then  
> scselect Home  
> else  
> scselect Automatic  
> fi

TIA!

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [August 20, 2019, 12:34pm UTC](https://community.folivora.ai/t/terminal-output-to-overlay/10421/2 "2019-08-20T12:34:13Z")

</div>

The easiest is probably to use a macOS notification like this:

```auto
if scselect 2>&1 | grep '*.*Automatic' >/dev/null 2>&1; then
scselect Home
osascript -e 'display notification "Home" with title "New Location"'
else
scselect Automatic
osascript -e 'display notification "Automatic" with title "New Location"'
fi

```

It can also be done with BTT and variables, but you might not need that.

---

<div class="post-metadata">

**Author:** ![superficial](https://community.folivora.ai/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@superficial](https://community.folivora.ai/u/superficial)\
**Post date:** [August 20, 2019, 2:51pm UTC](https://community.folivora.ai/t/terminal-output-to-overlay/10421/3 "2019-08-20T14:51:02Z")

</div>

Brilliant, thanks - this worked perfectly.
