-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutmp-desc
executable file
·52 lines (52 loc) · 4.06 KB
/
utmp-desc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
echo -e "utmp <mode> <key> [-ptcC]"
echo -e " DESC:"
echo -e " Utmp stands for Ultra Tacky Music Player, and it tries it's best to just be that."
echo -e " Utmp only can do a couple things, but as being completely written in a language meant for little-to-no complexity, it's fairly decent."
echo -e " It essentially has the same functionality as a Discord music bot, save for the fact it runs on your computer and (typically) permanently stores it's files."
echo -e " Space-sensitive."
echo -e ""
echo -e " TEXT COLORS:"
echo -e " \033[0;32mgreen text\033[0;0m is standard text, colored green to seperate from the terminal's white"
echo -e " \033[0;33morange text\033[0;0m is a warning, either the program had to do extra work, or an error that will not stop utmp from running"
echo -e " \033[0;31mred text\033[0;0m is fatal error text, the program will stop after showing you red text"
echo -e " white text is utmp telling big brain people what it's doing, or are generated as an error by utmp's commands"
echo -e ""
echo -e " INPUTS:"
echo -e " <mode> : can be set to each of the following values:"
echo -e " list : show all songs in library (inside ~/utmp/ folder)"
echo -e " find : use key as \033[0;32msearch query\033[0;0m on youtube to find videos"
echo -e " down : use key as a \033[0;32mlink\033[0;0m to directly download videos"
echo -e " play : play videos from library using their indexes"
echo -e " key 0 would play the first song in library"
echo -e " key 0,4,2 would play the first, fifth, and then third song in library"
echo -e " key all would play \033[0;33mevery single song in the library\033[0;0m, in a random order"
echo -e " expo : put all (applicable) songs in a big command you can send to a friend, which if they run, lets them download all of the same songs"
echo -e " chooses songs by index, like play"
echo -e " remv : \033[0;31mdelete\033[0;0m specified songs by index"
echo -e " clen : \033[0;31mdelete\033[0;0m duplicate songs with the same filename (but extensions can differ)"
echo -e ""
echo -e " <key> : what this needs to be changes based on <mode>"
echo -e " <mode> is list : <key> can be nothing, but if something it will be used as a search keyword, only returning results with that text"
echo -e " <mode> is find : <key> can be anything (but not nothing), and make sure you put quotes around the text if it has spaces"
echo -e " <mode> is down : <key> should be a url"
echo -e " <mode> is play : <key> should be a bunch of numbers seperated by commas, denoting media indexes. If an index is not found (or maybe you put text instead of an index), it will use it as a search keyword much like list, and go on to play any and ALL matches."
echo -e " <mode> is expo : same as play"
echo -e " <mode> is remv : same as play, again"
echo -e " <mode> is clen : <key> not needed"
echo -e ""
echo -e " OPTIONS:"
echo -e " -p : Prompt file for deletion after download, if any. Only works with <mode> as 'find' or 'down'"
echo -e ""
echo -e " -t : Play video, and then prompt for deletion"
echo -e " Recommended to use -t when using 'find' mode as Youtube may not always return what you wanted"
echo -e " -c : Confirm dependency status, and auto-download them if not found."
echo -e " May not be able to auto-download depending on many things, but should generally work on most systems."
echo -e " This is a special option that can be put in place of any of utmp's required inputs."
echo -e " -C : Force-install ALL dependencies."
echo -e " Does NOT reinstall anything. This simply tries to install them again."
echo -e ""
echo -e " DEBUGGING:"
echo -e " The utmp script itself contains several constants you can change to modify how the script finds it's libraries, the volume, etc. These also determine how utmp tries to auto-download them."
echo -e " utmp-install is utmp's auto-downloader for dependencies, and contains the OS REF SHEET, which shows you how utmp treats different operating systems during the process."
echo -e " utmp-desc and utmp-lib.sh shouldn't need to be changed unless something goes \033[0;33mreally\033[0;0m wrong."