Hacker News new | ask | show | jobs
by jrvarela56 1276 days ago
I just bought a Streamdeck (https://www.amazon.com/Elgato-Stream-Deck-Controller-customi...) for Cybermonday and attached bash scripts similar to those mentioned by the author to buttons next to my keyboard. It is delightful.
4 comments

I've done a similar thing on Windows and Powershell (via Open). Only limitation is it still spawn a terminal window even if briefly (enough to mess with focus however).

powershell -WindowStyle Hidden -ExecutionPolicy Bypass -Command "& { // Command(s) }"

In particular I use it with this Powershell Script:

https://stackoverflow.com/questions/21355891/change-audio-le...

via e.g.:

"& { C:\[Path To Script]\SetVolume.ps1; [audio]::Volume = 0.4 }"

For 40% and so on.

What action type do you use for your script? "Open"?
Yeah open works, you can also create a multiaction to mix-and-match with other actions or scripts in between.
Thanks for the idea! I just found a Streamdeck from a past Cyber Monday when I was cleaning out my closet.
This is a neat product! What kinds of scripts do you have it set up to run?