aboutsummaryrefslogtreecommitdiff
path: root/i3/blocks/cmus
diff options
context:
space:
mode:
authorNeodarZ <neodarz@neodarz.ovh>2016-11-03 23:32:29 +0100
committerNeodarZ <neodarz@neodarz.ovh>2016-11-03 23:32:29 +0100
commit85869af083741e8230cf66d1acc4a3b2da21dbd5 (patch)
treef84efd1622d327039e0c0876a39b948469c42388 /i3/blocks/cmus
parent146b416466cda8fdb6151bf73f99fa65a483fc09 (diff)
downloaddotfiles-85869af083741e8230cf66d1acc4a3b2da21dbd5.tar.xz
dotfiles-85869af083741e8230cf66d1acc4a3b2da21dbd5.zip
Add the new i3 configuration
Diffstat (limited to '')
-rwxr-xr-xi3/blocks/cmus20
1 files changed, 0 insertions, 20 deletions
diff --git a/i3/blocks/cmus b/i3/blocks/cmus
deleted file mode 100755
index f4d15b3..0000000
--- a/i3/blocks/cmus
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-INFO_CMUS=$(cmus-remote -Q 2>/dev/null)
-if [[ $? -eq 0 ]]; then
- INFO_TITLE=$(echo "${INFO_CMUS}" | sed -n -e 's/^.*title//p' | head -n 1)
- INFO_ALBUM=$(echo "${INFO_CMUS}" | sed -n -e 's/^.*album//p' | head -n 1)
- INFO_ARTIST=$(echo "${INFO_CMUS}" | sed -n -e 's/^.*artist//p' | head -n 1)
-else
- exit
-fi
-
-if [[ "${INFO_ARTIST}" ]] && [[ "${INFO_TITLE}" ]]; then
- OUT_TEXT=$(echo "${INFO_ARTIST} - ${INFO_TITLE}" | xargs)
-elif [[ "${INFO_TITLE}" ]]; then
- OUT_TEXT=$(echo "${INFO_TITLE}" | xargs)
-fi
-
-echo "${OUT_TEXT}"
-echo "${OUT_TEXT}"
-exit \ No newline at end of file