Cross-platform Python global emote picker to quickly insert custom images/gifs
A cross-platform Python global emote picker to quickly insert custom images/gifs
Motivation: Poor Man's Discord Nitro
git clone https://github.com/dchen327/pingmote.git
or download as a zip and extractpingmote.py
)pip install -r requirements.txt
to install dependencies (pip3
if needed)python3 pingmote.py
(Mac and Linux: sudo python3 pingmote.py
) starts the script, and when you hit the hotkey at the top of config.py
(default ctrl+q
), the emote picker will show up, allowing you to click an emote to insertconfig.py
for configsassets/original
, then run image_resizer.py
which will resize all the images (ignoring gifs) and drop them in assets/resized
gifsicle
, but a website like ezgif also worksassets/original
(they'll be ignored when the resizer is run)assets/resized
to an image hoster (I like postimages). Copy the direct image links (ending in file extension) and paste in links.txt
links.txt
pingmote.pyw
allows for running the script in the background, and then it can be dropped into shell:startupKeyError: 'XDG_SESSION_TYPE'
, set the environment variable by running
sudo XDG_SESSION_TYPE=x11 python3 pingmote.py
xclip
for copying local images, xdotool
for pasting and keyboard commandsxdotool
no longer neededimage_resizer.py
for locally resizing imagespynput
for cross-platform global hotkey mapping, fully removed PyAutoGUI dependencieskeyboard
from pynput
to fix hotkey blocking behavior (after 3 weeks of zero progress)image_resizer.py