mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
Plugin music: play random music from current dir
This commit is contained in:
parent
e1d8adce2f
commit
bd29368d4c
|
@ -1,5 +1,6 @@
|
||||||
| Plugin (a-z) | Lang | Deps | Description |
|
| Plugin (a-z) | Lang | Deps | Description |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
|
| boom | sh | SMPlayer | Play random music from current dir (modify `PLAYER`) |
|
||||||
| fzy-edit | sh | fzy | Fuzzy find a file in directory subtree and edit in vim |
|
| fzy-edit | sh | fzy | Fuzzy find a file in directory subtree and edit in vim |
|
||||||
| fzy-open | sh | fzy | Fuzzy find a file in directory subtree and open using xdg-open |
|
| fzy-open | sh | fzy | Fuzzy find a file in directory subtree and open using xdg-open |
|
||||||
| getplugs | sh | wget | Update plugins |
|
| getplugs | sh | wget | Update plugins |
|
||||||
|
|
12
plugins/boom
Executable file
12
plugins/boom
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# Description: Play random music from current directory. Identifies MP3, FLAC, WEBM, WMA.
|
||||||
|
# You may want to change the PLAYER.
|
||||||
|
#
|
||||||
|
# Shell: POSIX compliant
|
||||||
|
# Author: Arun Prakash Jana
|
||||||
|
|
||||||
|
PLAYER=smplayer
|
||||||
|
|
||||||
|
find . -type f \( -iname "*.mp3" -o -iname "*.flac" -o -iname "*.webm" -o -iname "*.wma" \) | sort -R | head -n 100 | xargs -d "\n" "$PLAYER" > /dev/null 2>&1 &
|
||||||
|
disown
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# Description: Shows the IP address and whois information.
|
# Description: Shows the IP address and whois information. Useful over VPNs.
|
||||||
#
|
#
|
||||||
# Shell: POSIX compliant
|
# Shell: POSIX compliant
|
||||||
# Author: Arun Prakash Jana
|
# Author: Arun Prakash Jana
|
||||||
|
|
Loading…
Reference in a new issue