Okay, so after much trying this morning I THINK I have RPi.GPIO installed. I am trying to simply mute/unmute a momentary push button on my rotary encoder. pause/play would work too. I even found some code that should work for me on another forum post:
!/usr/bin/env python
import RPi.GPIO as GPIO
import time
import subprocess
GPIO.setmode(GPIO.BOARD)
# Select unused GPIO header pin to be used to toggle play/pause
InputPin = 13
# Set selected pin to input, and enable internal pull-up
GPIO.setup(InputPin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
# Wait for a button press on the selected pin (pulled to ground, falling edge)
GPIO.wait_for_edge(InputPin, GPIO.FALLING)
# When pressed, toggle play/pause
mpc toggle
However, I don't know where to save this file or what to do with it once it's there. Any reply at all would be greatly appreciated. PRETTY PLEASE.