Hi There
System: Fedora 41 Plasma
I recently started a cool project for automating parts of my workflow and use python scripts to save time. For this, i bought a very small Midi-Keyboard (8 Pads, 9 Potis, keys, +…) and startet writing different python scripts and parts for the things i need. For the main-logic i have some controller (mido stuff) which serves as an entry point to the program.
I’ve not implemented all features till now, but it’s really nice to have this automations. Example: Press Pad + Write Notes + Enter → Note saved to inbox (very Fast overall).
The point is, that i use those things on my notebook, and i dont want to take the midi-board with me all the time (it’s also not necessary). Since i should be able to use my scripts also when i’m not at home, i like to put them on some of my shortcut possibilities. But it’s a bit tedious to set up all the shortcuts by hand. (and even if I have a new notebook)
Thus: Is there a good or sophisticated way to automate shortcut creation on fedora with CLI or pyhton (direct).
I’d rather thought about writing directly to the config file, but i’m not so sure if this is a good idea.
The simplest way would be to use some “magic command” to create one single shortcut.
My “architecture” would be:
- src
- global_config.yaml # if needed
- main.py # creates the shortcuts (register)
- README.md
- shortcuts
- my-new-shortcut
- config.yaml
- mainly.py
- functions
- first.py
- second.py
- second-shortcut
- my-new-shortcut
The main goal is to have 1 repo at the end which i can clone / pull, call python /main.py, and i’m ready to go. That would be really nice.
(config definitions are open at the moment)
thanks a lot to all of you who contribute to this forum or perhaps to this post
kind regards