summarylogtreecommitdiffstats
path: root/readme.install
blob: 0e4de89e9720ff7139c40522da888ca03b169187 (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
post_install() {
	echo '--------------------------------------------------------------------------'
	echo '                           INSTRUCTIONS FOR USE'
	echo 
	echo 'Simply map the following scripts to keyboard shortcuts in your DE or WM.'
	echo 'Xfce4 allows for this under Settings > Keyboard > Application Shortcuts.'
	echo
	echo '/usr/bin/pulseaudio-ctl mute ==>  Toggle status of mute'
	echo '/usr/bin/pulseaudio-ctl mute-input ==>  Toggle status of mute for mic'
	echo '/usr/bin/pulseaudio-ctl up   ==>  Increase vol by 5 %'
	echo '/usr/bin/pulseaudio-ctl down ==>  Decrease vol by 5 %'
	echo '--------------------------------------------------------------------------'
}

post_remove() {
	echo '-----------------------------------------------------------------------'
	echo 'Be sure you remove any keyboard shortcuts or bindings you created.'
	echo '-----------------------------------------------------------------------'
}

post_upgrade() {
	## arg 1:  the new package version
	## arg 2:  the old package version
	oldpkgver=${2%-*}
	#newpkgver=${1%-*}

	for i in 1.62 1.46; do
		if [[ $oldpkgver < $i ]]; then
			echo '--> Please check ~/.config/pulseaudio-ctl/config against the'
			echo '--> provided /usr/share/pulseaudio-ctl/config.skel to ensure'
			echo '--> it is current as the script does not do this automatically.'
		else
			/bin/true
		fi

	done

	if [[ $oldpkgver < 1.20 ]]; then
		echo '--> Support for the older three script solution has been removed.'
		echo '--> You MUST remaps your shortcut keys.'
		echo '-->'
		echo '--> /usr/bin/mute_toggle  ==> /usr/bin/pulseaudio-ctl mute'
		echo '--> /usr/bin/vol_up       ==> /usr/bin/pulseaudio-ctl up'
		echo '--> /usr/bin/mute_toggle  ==> /usr/bin/pulseaudio-ctl down'
	else
		/bin/true
	fi
}