Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs
User Name



Prototype/principle for a wrapper script for multiple media players to use the same Openbox keybindings, depending on which one is running

Posted 03-25-2021 at 11:50 AM by the dsc (linux-related notes)
Tags mpc, mpv, openbox

Most likely not the most elegant way of doing it, and not fully functional (for mpv) regarding the display of media info:


if pgrep -x mpv ; then

echo '{"command": ["playlist-next"]}' > /tmp/mpvsocket

#title=$(echo '{ "command": ["get_property", "media-title"] }'  >  /tmp/mpvsocket)

#title=( $(wmctrl -l | grep mpv$ ) ) 

Posted in Uncategorized
Views 702 Comments 0 the dsc is offline

MPV script crops/zooms the video without reencoding

Posted 12-25-2019 at 10:05 AM by the dsc (linux-related notes)
Tags mpv

Have you ever seen or being interested in watching a video with some eerily poor framing source, like, the center of interest would be slides that are shown tiny as "a picture in picture" kind of thing? This script is the handiest tool to make them watchable, if the resolution is high enough:

Pressing "c" and then clicking at an edge of the virtual crop will darken most of the video, then, as you move the...
Posted in Uncategorized
Views 2022 Comments 0 the dsc is offline

Another "Bash script for queueing youtube links in mpv", adapted for hovering + shortcut keys on possibly multiple contexts

Posted 05-25-2019 at 03:46 PM by the dsc (linux-related notes)
Updated 10-11-2020 at 06:05 PM by the dsc

This script is partly based on this one, referred on the post title:

It was originally an independent development, so it relies in some aspects more on mpv.conf (to define its input pipe/fifo file), so one may want to modify it according to whatever preference regarding that.

The main difference is a gimmick to get the URL from where the cursor is hovering...
Posted in Uncategorized
Views 1782 Comments 0 the dsc is offline


All times are GMT -5. The time now is 08:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration