Rofi_Player
Rofi Player
Rofi Player is a bash script that uses Rofi, a substitute for windows switch, application launcher and dmenu, to create a simple and interactive music player.
It uses mpv to play music and mpv-mpris to support
.
Features
- Displays all folders (playlists) in the
directory.~/Music - Shows the number of tracks in each playlist.
- Allows you to select a playlist to play.
- Plays the selected playlist in random order.
- Allows you to stop playback and exit the player.
- Allows to play YouTube playlist directly or by downloading
- Managing playlists
Dependensies
^Rofi
^ v0.37.0MPV
^mpv-mpris
^ jq-1.7.1jq
^ 2024.03.10yt-dlp
^ 0.8.3notify-send
^ 1.8.0.0socat
^ n6.1.1ffmpeg
Flags
It allows you to set the indentation size to the number of songs in the directory--offset
Custom way to YT playlists JSON--json_file
Custom way to notify-send icon--icon
Enable/disable notification--notify
Using
- Make sure you have all dependensies installed.
- Copy the script to a convenient location.
- Give the script execute permissions
chmod +x
- Run the script from the terminal or bind it to a hotkey (for example, in
.~/.config/hyprland/keybindings.conf
bind = $mainMod, Y, exec, pkill -x rofi || $scrPath/player.sh --offset=25 # open player
- In the Rofi window that opens, select a playlist to play.
More functions
is allows you to enter a URL on playlist, which will be played and saved in jsonFrom YouTube
is allows you to enter a URL on playlist, which will be played and downloaded as mp3Save YouTube
is running menu to delete playlistDelete
is kill playerExit
Описание
Апплет Rofi, предоставляющий интерфейс для воспроизведения музыки. Он позволяет воспроизводить треки в случайном порядке из локальных плейлистов (папок). Поддерживается прямая трансляция плейлистов YouTube или их загрузка для последующего прослушивания в автономном режиме.
Языки
Shell