~nature/yt-cli

ref: 5aed3fa12144affceb2963a710684971efd22485 yt-cli/wrapper.sh -rwxr-xr-x 782 bytes
5aed3fa1LordNature wrapper.sh: Added placeholder functionality. 1 year, 6 months ago
                                                                                
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
#!/bin/sh
# wrapper.sh example
# Dep: youtube-dl, mpv, notify-send, dmenu
# This script will be a wrapper of the Go programming using handling pipe data.
# The idea is that this will allow keep the program to stick to doing one thing.
# While it is possible to use pipes in Golang, I find this approach to be better
# for integration into a Linux system. However, this could be changed in the
# future and integrated into the Go program. We'll see. THIS IS AN EXAMPLE.

# Set timeout to 4s
alias notify-send="notify-send -t 4000"
# Set dmenu prompt
alias dmenu="dmenu -p 'play >' -l 10"

case $1 in
	add)
		channelName="example"
		notify-send "YouTube CLI" "Added $channelName."
		printf "%s\n" "Default placeholder."
		;;
	*)
		printf "%s\n" "Default placeholder."
		;;
esac

exit