From 9bc76cf6859b23bb0ca85d4d86a2e3fcdc36c3d8 Mon Sep 17 00:00:00 2001 From: aj Date: Fri, 22 Mar 2019 15:25:10 +0000 Subject: [PATCH] added i3spotify script --- i3spotify | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 i3spotify diff --git a/i3spotify b/i3spotify new file mode 100755 index 0000000..3691b84 --- /dev/null +++ b/i3spotify @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +SPOTPID="$(pgrep -x spotify)" + +if [[ -z $SPOTPID ]]; then + spotify & > /dev/null +else + i3-msg workspace "100:spotify" +fi +