From cfdaece42c69f9df998402ea4b4476f5c42e1e2c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 14 May 2023 18:29:28 -0300 Subject: add karabiner, stub custom media control keys --- scripts/keys/fast-forward.sh | 3 +++ scripts/keys/play-or-pause.sh | 3 +++ scripts/keys/rewind.sh | 3 +++ 3 files changed, 9 insertions(+) create mode 100755 scripts/keys/fast-forward.sh create mode 100755 scripts/keys/play-or-pause.sh create mode 100755 scripts/keys/rewind.sh (limited to 'scripts') diff --git a/scripts/keys/fast-forward.sh b/scripts/keys/fast-forward.sh new file mode 100755 index 0000000..1f8bf6e --- /dev/null +++ b/scripts/keys/fast-forward.sh @@ -0,0 +1,3 @@ +#!/bin/zsh + +osascript -e 'tell application "Music" to next track' diff --git a/scripts/keys/play-or-pause.sh b/scripts/keys/play-or-pause.sh new file mode 100755 index 0000000..0524b56 --- /dev/null +++ b/scripts/keys/play-or-pause.sh @@ -0,0 +1,3 @@ +#!/bin/zsh + +osascript -e 'tell application "Music" to playpause' diff --git a/scripts/keys/rewind.sh b/scripts/keys/rewind.sh new file mode 100755 index 0000000..edb5cd4 --- /dev/null +++ b/scripts/keys/rewind.sh @@ -0,0 +1,3 @@ +#!/bin/zsh + +osascript -e 'tell application "Music" to back track' -- cgit 1.3.0-6-gf8a5