Something went wrong. Try again.
Mirroring: https://github.com/MunifTanjim/scripts.sh
Something went wrong. Try again.
scripts.sh cmus-toggle
612 B · 24 lines
at main
12345678910111213141516171819202122232425#!/usr/bin/env bash
_terminal_emulator=$(readlink -f `which x-terminal-emulator`)_terminal_name=$(basename ${_terminal_emulator})
_terminal_command=""
case ${_terminal_name} in alacritty) _terminal_command="${_terminal_emulator}";; tilix) _terminal_command="${_terminal_emulator} --window-style=disable-csd";; mate-terminal) _terminal_command="${_terminal_emulator} --hide-menubar";; *) _terminal_command="${_terminal_emulator}";;esac
if (pgrep cmus$ &>/dev/null) ; then cmus-remote -uelse notify-send cmus "Loading C* Music Player..." ${_terminal_command} --command=cmusfi