this post was submitted on 03 Nov 2023
31 points (97.0% liked)

Linux

48364 readers
1622 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I download my music videos and shuffle them in mpv. Sometimes i want a certain song so i want like a hotkey to open ~/Music\ Videos/ and search for a file. I used rofi file browser extended from the aur but i cant get it to compile on debian

you are viewing a single comment's thread
view the rest of the comments
[–] BuddyTheBeefalo@lemmy.ml 3 points 1 year ago* (last edited 1 year ago)
#!/bin/bash

video_directory="~/Music Videos/ "

while true; do
  read -p "Enter music video: " prompt

  find "$video_directory" -type f -name "*$prompt*" -exec umpv  {} \;
done

umpv:

https://github.com/mpv-player/mpv/blob/master/TOOLS/umpv