-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmpdprev
More file actions
executable file
·27 lines (25 loc) · 949 Bytes
/
mpdprev
File metadata and controls
executable file
·27 lines (25 loc) · 949 Bytes
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
#!/usr/bin/env bash
#
# ############################################################################
# Project: scripts (none)
# File...: mpdprev
# Created: Tuesday, 2020/10/27 - 10:27:32
# Author.: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Last Modified: Wednesday, 2023/07/05 - 14:10:44
# Modified By..: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Version: 0.1.1.3
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Description:
# >
# ############################################################################
# HISTORY:
#
player=ncmpcpp
if pgrep -x $player >/dev/null ; then
mpc prev
else
mpc prev
alert " - Prev Song" "$(mpc current)"
fi