diff --git a/enqueue.desktop b/enqueue.desktop new file mode 100644 index 0000000..ddb682c --- /dev/null +++ b/enqueue.desktop @@ -0,0 +1,13 @@ +# i made this cause i was missing the enque button that i used to have on windows +[Desktop Entry] +Type=Service +X-KDE-ServiceTypes=KonqPopupMenu/Plugin +MimeType=audio/basic;audio/wav;audio/x-wav;audio/x-aiff;audio/ogg;audio/vorbis+ogg;audio/mp4;audio/aac;audio/wavpack;audio/flac;application/vnd.apple.mpegurl;audio/mod;audio/x-mod;audio/x-xm;audio/x-s3m;audio/x-it;audio/x-mtm;audio/x-med;application/x-umx;audio/dsd;audio/x-dsf;audio/x-dff;application/x-dsd;audio/ape;audio/x-ape;application/x-cue +Actions=EnqueueFoobar +X-KDE-AuthorizeAction=shell_access + +[Desktop Action EnqueueFoobar] +Name=Enqueue in Foobar2000 +Icon=foobar2000.png +Exec="$HOME/foobar on linux/foo_play.sh" enque %F +Comment=Enqueue selected tracks in Foobar2000 diff --git a/foo_play.sh b/foo_play.sh new file mode 100644 index 0000000..7fe5845 --- /dev/null +++ b/foo_play.sh @@ -0,0 +1,81 @@ +#!/bin/bash +# rich presence and track loading handler to a Wine installation of foobar2000 + +# declare variables +enque=false + +#paths + +FOOBAR_HOME="$HOME/foobar on linux/foobar2000" +#the folder the foobar2000 executable folder is located in + +# trigger wine discord IPC bridge script (optional) +</dev/null & +else + nice -n -20 wine "$FOOBAR_HOME/foobar2000.exe" "${args[@]}" 2>/dev/null & +fi diff --git a/foobar2000.desktop b/foobar2000.desktop new file mode 100644 index 0000000..e399058 --- /dev/null +++ b/foobar2000.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=foobar2000 +GenericName=Plays Music +Comment=Plays music +Exec="$HOME/foobar on linux/foo_play.sh" +Terminal=false +StartupNotify=true +MimeType=audio/basic;audio/vnd.wav;audio/x-wav;audio/x-aiff;audio/ogg;audio/vorbis;audio/x-vorbis+ogg;audio/mpeg;audio/mp4;audio/aac;audio/x-wavpack;application/vnd.apple.mpegurl +Categories=AudioVideo;Audio;Player +Icon=foobar2000.png diff --git a/foobar2000.png b/foobar2000.png new file mode 100644 index 0000000..350a1fa Binary files /dev/null and b/foobar2000.png differ