~rootmos/media

e6a7c1f2c919457065cc45e50d15a7c9ea560641 — Gustav Behm a month ago b324e07
Add a rough draft
1 files changed, 17 insertions(+), 0 deletions(-)

A README.md
A README.md => README.md +17 -0
@@ 0,0 1,17 @@
# media

My Python wrappers and around [feh](https://feh.finalrewind.org/) and [mpv](https://mpv.io/).

The package builds its own instances of feh and mpv,
primarily parametrizing the relevant [XDG directories](https://specifications.freedesktop.org/basedir-spec/latest/)
in order to obtain isolation from any already present configurations.

These wrappers primarily evolved from my inability to remember the flags when switching from mplayer to mplayer2 to mpv.
My scheme being: one purposeful wrapper around whatever tool implements the functionality at the time:
`play`, `view` and [`edit`](https://git.sr.ht/~rootmos/dot-nvim).
So when fashions change, the implementation changes not the facade, hey I remember this from the [Gang of Four](https://en.wikipedia.org/wiki/Design_Patterns).

The python wrappers evolved to being capable of triggering callbacks in the python host program.
The idea came from binding [feh's action keys](https://man.archlinux.org/man/feh.1#A) sending back the trigger over a Unix socket.

Tested using [xdotool](https://man.archlinux.org/man/xdotool.1).