From 90ce2c91f11657fddd3dc36b56cc3767aa09f14a Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Fri, 12 Aug 2022 10:51:19 -0300 Subject: [PATCH] Add playerctl script --- dotfiles/.local/bin/playerctl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 dotfiles/.local/bin/playerctl diff --git a/dotfiles/.local/bin/playerctl b/dotfiles/.local/bin/playerctl new file mode 100755 index 0000000..93832c7 --- /dev/null +++ b/dotfiles/.local/bin/playerctl @@ -0,0 +1,8 @@ +#!/bin/bash + +if ! pgrep playerctld &> /dev/null; then + playerctld & + sleep 0.5 +fi + +playerctl "$@"