aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOmar Magdy <omar.professional8777@gmail.com>2022-06-21 15:07:25 +0200
committerOmar Magdy <omar.professional8777@gmail.com>2022-06-21 15:07:25 +0200
commit4acea2fb0fa4740e66a808b50cb2986c2f2d2e78 (patch)
tree7531695d139759fe8b26a1f4bf991b71cd69ee1b /scripts
parent166dd6eb00261665fe62978f62a14772a501c835 (diff)
downloaddotfiles-4acea2fb0fa4740e66a808b50cb2986c2f2d2e78.tar.xz
dotfiles-4acea2fb0fa4740e66a808b50cb2986c2f2d2e78.zip
Added a new themes to awesomeWM
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/.scripts/spotify.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/.scripts/spotify.sh b/scripts/.scripts/spotify.sh
new file mode 100755
index 0000000..75204b8
--- /dev/null
+++ b/scripts/.scripts/spotify.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:org.mpris.MediaPlayer2.Player string:Metadata | sed -n '/title/{n;p}' | cut -d '"' -f 2