aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/audio_vis.sh
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/audio_vis.sh')
-rwxr-xr-x.local/bin/audio_vis.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/.local/bin/audio_vis.sh b/.local/bin/audio_vis.sh
deleted file mode 100755
index 62bb76c..0000000
--- a/.local/bin/audio_vis.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#! /bin/bash
-
-# bar='_▁▂▃▄▅▆▇█#'
-bar=".'-,~^*&#@"
-dict='s/;//g;'
-
-# creating "dictionary" to replace char with bar
-i=0
-while [ $i -lt ${#bar} ]
-do
- dict="${dict}s/$i/${bar:$i:1}/g;"
- i=$((i=i+1))
-done
-
-# write cava config
-config_file="/tmp/polybar_cava_config"
-echo "
-[general]
-bars = 12
-
-[output]
-method = raw
-raw_target = /dev/stdout
-data_format = ascii
-ascii_max_range = 6
-" > $config_file
-
-# read stdout from cava
-cava -p $config_file | while read -r line; do
- echo $line | sed $dict
-done