Force word splitting for fallback value in sh/bash
I want use complex command as fallback value, something like this, but do not treat ls -sh
as single string.
Run command when external monitor is connected/disconnected (bash)
I’m trying to write a bash script that executes a command when an external monitor is connected/disconnected. This is what I’ve got so far (based on the answer here) but it’s not working, can anyone tell me what I’m doing wrong?