~nature/yt-cli

5aed3fa12144affceb2963a710684971efd22485 — LordNature 1 year, 5 months ago 097a8dc
wrapper.sh: Added placeholder functionality.
1 files changed, 26 insertions(+), 0 deletions(-)

A wrapper.sh
A wrapper.sh => wrapper.sh +26 -0
@@ 0,0 1,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