#!/bin/bash pause=1 . ./setup status Paused check pause true playerctl play sleep 1 status Playing check pause false wait %1