aboutsummaryrefslogtreecommitdiff
path: root/stuff/scripts
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-25 22:56:55 +0100
committerMateja <mail@matejamaric.com>2020-11-25 22:56:55 +0100
commit8c2b8522ef77f8801885b44ca34c5c5ab8164be2 (patch)
treef8ec634a89ee29edcd6b03b603bdc49c9dc4f9a3 /stuff/scripts
parentda3df637a566001805532b57c534e6fc1c7aacf4 (diff)
downloaddotfiles-8c2b8522ef77f8801885b44ca34c5c5ab8164be2.tar.gz
dotfiles-8c2b8522ef77f8801885b44ca34c5c5ab8164be2.zip
More qtile keybindings and better autostart.sh
Diffstat (limited to 'stuff/scripts')
-rwxr-xr-xstuff/scripts/mpd_show6
1 files changed, 6 insertions, 0 deletions
diff --git a/stuff/scripts/mpd_show b/stuff/scripts/mpd_show
new file mode 100755
index 0000000..8d14a1d
--- /dev/null
+++ b/stuff/scripts/mpd_show
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+raw="$(mpc)"
+song=$(echo "$raw" | sed -n '1p')
+time=$(echo "$raw" | sed -n '2p')
+notify-send "$song" "$time"