This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.local/bin/player

15 lines
433 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
######################################################################
# @author : swytch (swytch@$HOSTNAME)
# @file : player
# @license : MIT
# @created : Friday Feb 05, 2021 21:42:00 CET
#
# @description : Simple wrapper to mpc, to send notifications
######################################################################
out="$(mpc $1 | head -n2)"
dunstify -r 10010 -u "normal" MPD "$out"