blob: aeab2b539b08ab79c66e2daa8434ae9d717cbea1 (
plain)
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
53
54
55
56
|
all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
yellow="${bold}$(tput setaf 3)"
blue="${bold}$(tput setaf 4)"
green="${bold}$(tput setaf 2)"
_instructions() {
printf "${yellow}==>${all_off} ${bold}ATTENTION:${all_off}
${green}==>${all_off} ${bold}For run this plugin, you can use one of this methods:${all_off}
${blue}->${all_off} Or add this line:
'${bold}script=/usr/share/mpv/scripts/mpris.so${all_off}'
in one of two this config files:
User Wide: '${bold}"$\HOME/".config/mpv/mpv.conf${all_off}'
System Wide: '${bold}/etc/mpv/mpv.conf${all_off}'
${blue}->${all_off} Or copy (or softlink) the plugin into one of two places:
User Wide: '${bold}"$\HOME/".config/mpv/scripts${all_off}'
System Wide: '${bold}/etc/mpv/scripts${all_off}'
for autoload it.\n"
}
_instructions_remove() {
printf "${yellow}==>${all_off} ${bold}ATTENTION:${all_off}
${green}==>${all_off} ${bold}Don\'t forget:${all_off}
${blue}->${all_off} Remove this line:
'${bold}script=/usr/share/mpv/scripts/mpris.so${all_off}'
in your config file:
User Wide: '${bold}"$\HOME/".config/mpv/mpv.conf${all_off}'
System Wide: '${bold}/etc/mpv/mpv.conf${all_off}'
${blue}->${all_off} Or remove the plugin (or softlink) into your:
User Wide: '${bold}"$\HOME/".config/mpv/scripts${all_off}'
System Wide: '${bold}/etc/mpv/scripts${all_off}'
folder.\n"
}
post_install() {
_instructions
}
post_remove() {
_instructions_remove
}
|