about summary refs log blame commit diff stats
path: root/home-manager/packages/scripts/small_functions/mocs
blob: e14a84c808b1517f5eeb746a13800092a6c6b00a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15













                                                
#! /bin/bash
if [[ "$(pgrep mocp)" -eq 0 ]];
then
    mocp -M "${XDG_CONFIG_HOME}"/moc -S
    if [[  $1 -eq 0 ]];
    then
        mocp -M "${XDG_CONFIG_HOME}"/moc -v 12
    else
        mocp -M "${XDG_CONFIG_HOME}"/moc -v "$1"
    fi
    mocp -M "${XDG_CONFIG_HOME}"/moc -p
    mymocp&
else
    mocp -M "${XDG_CONFIG_HOME}"/moc -G
fi