Commit Diff


commit - d2fb362e27fcf5452497bf0e90961ca762c48c0b
commit + 5f6069a6a74ca230a6a981d3fcfc65fe3bfd77a3
blob - 56e49b400be55dda60ecf8d03e6b162280608625
blob + ef7cdc45bc67b6dbd11778e5fcb95fb834804fd8
--- mpc-notify
+++ mpc-notify
@@ -9,6 +9,12 @@
 # For notification on media keys:
 # 	Bind media key to a call to mpc with the approprite command.
 
+# exit early if we're in tty
+if [ -z "$WAYLAND_DISPLAY" ] && [ -z "$DISPLAY" ]; then
+	exit 2
+fi
+command="$1"
+
 # FEATURE: make width and height configurable through flags
 preview_width=64
 preview_height=64