dotfiles/home/bin/music_player

8 lines
171 B
Bash
Executable File

#!/bin/bash
cd ~/Music || exit
selected_song=$(ls | rofi -i -dmenu -p "Select a song to play") || exit
notify-send "Playing ${selected_song}"
mplayer "${selected_song}"