summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-07-15 21:17:38 +0200
committerRasmus Steinke <rasi@xssn.at>2017-07-15 21:17:38 +0200
commit9ff1fadf22cb595ad8dff4c1b96f0d7995f0fbed (patch)
tree14067c1558044cd994db637efb89a0de2bfc5c56 /clerk
parent212365732f00786284d421f951debbe7e49133b2 (diff)
downloadperl-app-clerk-9ff1fadf22cb595ad8dff4c1b96f0d7995f0fbed.tar.gz
perl-app-clerk-9ff1fadf22cb595ad8dff4c1b96f0d7995f0fbed.tar.xz
Use own column implementation. This should make clerk work on BSD and debian
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk7
1 files changed, 4 insertions, 3 deletions
diff --git a/clerk b/clerk
index 9d9f0cf..f427f50 100755
--- a/clerk
+++ b/clerk
@@ -178,18 +178,18 @@ updateCache () {
| sed 's:/[^/]*$::' | awk -F ' ○ ' '!seen[$1 $2 $3 $4]++' \
| uniq \
| gawk -F ' ○ ' '{ printf "%."'${artist_width}'"s\t%."'${date_width}'"s\t%."'${album_width}'"s\t%.300s\n", $1, $2, $3, $4 }' \
- | column -s $'\t' -t -o $'\t' > $HOME/.config/clerk/latest.cache
+ | clerk_column.pl > $HOME/.config/clerk/latest.cache
mpc --format '[%albumartist%|%artist%]\t(%date%)\t%album% [(CD %disc%)]\t%file%' \
search filename '' \
| sed 's:/[^/]*$::' \
| awk -F '\t' '!seen[$1 $2 $3 $4]++' \
| sort \
| gawk -F '\t' '{ printf "%."'${artist_width}'"s\t%."'${date_width}'"s\t%."'${album_width}'"s\t%.300s\n", $1, $2, $3, $4 }' \
- | column -t -s $'\t' -o $'\t' > $HOME/.config/clerk/albums.cache
+ | clerk_column.pl > $HOME/.config/clerk/albums.cache
mpc --format '%track%\t%title%\t%artist%\t(%date%)\t%album%\t%file%' \
search filename '' \
| gawk -F '\t' '{ printf "%."'${track_width}'"s\t%."'${title_width}'"s\t%."'${artist_width}'"s\t%."'${date_width}'"s\t%."'${album_width}'"s\t%.500s\n", $1, $2, $3, $4, $5, $6 }' \
- | column -s $'\t' -t -o $'\t' \
+ | clerk_column.pl \
> $HOME/.config/clerk/tracks.cache
notify-send "clerk" "finished updating cache files"
date=$(mpc stats | grep 'DB Updated: ')
@@ -1390,6 +1390,7 @@ ${line2}</span>"
-kb-row-tab '' \
-dmenu \
-sep '\n' \
+ -matching regex \
-kb-custom-1 "${add}" \
-kb-custom-2 "${insert}" \
-kb-custom-3 "${replace}" \