« get me outta code hell

add karabiner, stub custom media control keys - dotfiles - Miscellaneous configuration files of my personal use
about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-05-14 18:29:28 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-05-14 18:29:28 -0300
commitcfdaece42c69f9df998402ea4b4476f5c42e1e2c (patch)
tree12b9c2c67d419b2b3a8b71bc09ee1b1315127771 /scripts
parent13b094154ea6058509f879f54cae42a496a59629 (diff)
add karabiner, stub custom media control keys
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/keys/fast-forward.sh3
-rwxr-xr-xscripts/keys/play-or-pause.sh3
-rwxr-xr-xscripts/keys/rewind.sh3
3 files changed, 9 insertions, 0 deletions
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'