This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you need to `sudo pip install pyxhook` as it's used to intercept the volume presses | |
# you will also want to update your launcher to call this script (I just have mine in the pico-8 directory | |
# and have my PICO-8.sh run: | |
# SDL_VIDEODRIVER=x11 DISPLAY=:0 python /home/cpi/pico-8/pico-8-volume.py | |
# video of what it looks like: https://www.youtube.com/watch?v=BAoYapdMiPM | |
import pygame | |
import os | |
import pyxhook | |
import alsaaudio |