this post was submitted on 03 Nov 2023
30 points (96.9% liked)

Linux

47356 readers
1305 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

all 17 comments
sorted by: hot top controversial new old
[–] thejevans@lemmy.ml 12 points 10 months ago (1 children)
[–] mariah@feddit.rocks 0 points 10 months ago (1 children)

I tried that but it searches the entire filesystem

[–] Wiener234@feddit.de 8 points 10 months ago

You should be able to change directory to the one you want. https://github.com/junegunn/fzf/wiki/examples#changing-directory

[–] kanzalibrary@lemmy.ml 5 points 10 months ago

Fsearch, Recommended by Linux Format Magazine in their November 2023 series.

[–] BuddyTheBeefalo@lemmy.ml 3 points 10 months ago* (last edited 10 months 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

[–] far_university1990@feddit.de 1 points 10 months ago (1 children)
[–] mariah@feddit.rocks 1 points 10 months ago (1 children)

They remove the shuffle playlist

[–] far_university1990@feddit.de 3 points 10 months ago (1 children)

Shuffle playlist as a shortcut or cli-argument? Shortcuts can be customized in inputs config.

Also there are three in the list (only searching for „browse“): blackbox, file-browser, simple-loader

file-browser (or mpv-file-browser) can be customized for shortcuts. blackbox and simple-loader i could not find if they can be.

[–] mariah@feddit.rocks 1 points 10 months ago (1 children)
[–] far_university1990@feddit.de 1 points 10 months ago (1 children)

Do you launch with shuffle, some songs shuffle, add new song via browser and it plays the new next and not later? Or does it break the playlist? If the latter, maybe create an issue with the browser, sounds like a bug.

[–] mariah@feddit.rocks 1 points 10 months ago (1 children)

When i choose a file, it clears the playlist

[–] far_university1990@feddit.de 1 points 10 months ago

Yep that sounds like a bug. You can report it on github, all three scripts have repos.

[–] auf@lemmy.ml 1 points 10 months ago* (last edited 10 months ago) (2 children)

I know a few terminal-based file managers but I don't think those will help solve your problem. I recommend you to somehow port ( I don't see why rofi doesn't work on your debian tho ) rofi onto debian so that you can keep on your workflow.

[–] mariah@feddit.rocks 0 points 10 months ago (1 children)
[–] auf@lemmy.ml 4 points 10 months ago* (last edited 10 months ago) (1 children)

I'm completely not sure, but did you clone the repository with recursive flag?

It's presumably related to your includePath or something.

P.S. I think I've figured out:

You need to have rofi ^1.6.1 installed on your system.

https://github.com/marvinkreis/rofi-file-browser-extended#dependencies

[–] mariah@feddit.rocks 1 points 10 months ago

Oh. Rofis 1.7.3