change mpc picker to list titles and albums

This commit is contained in:
davidovski 2023-12-22 00:10:59 +00:00
parent 7b3aa701e2
commit ab3309062e
3 changed files with 7 additions and 5 deletions

View file

@ -138,7 +138,7 @@ label-muted = "%{T3} %{T-}--%"
[module/microphone]
type = custom/script
exec = amixer get Capture | tail -2 | grep -q off && && echo "" || echo ""
exec = amixer get Capture | tail -2 | grep -q off && echo "" || echo ""
interval = 1
click-left = $HOME/.scripts/toggle-mute.sh

View file

@ -1,4 +1,6 @@
#!/bin/sh
chosen=$(mpc listall | dmenu -i -p mpd)
[ "$chosen" != "" ] || exit
mpc insert "$chosen"
selected=$(mpc -f "%title%[\t\t%artist%][\t\t%album%]\t\t%file%" listall | dmenu -i -p mpd)
[ "$selected" == "" ] && exit
file=$(printf "%s\n" "$selected" | rev | cut -f1 -d' ' | rev)
echo "$file"
mpc insert "$file"

View file

@ -34,7 +34,7 @@ mp4-gif () {
alias zth="zathura"
alias nb="nb --blog-dir $BLOG_DIR"
alias looking-glass-client="looking-glass-client -G input:rawMouse=yes input:escapekey=119 input:autocapture=yes -k -j"
alias show-keymap="vim qmk_firmware/keyboards/ergo42/keymaps/iksvo/keymap.c"
alias show-keymap="vim ~/docs/proj/qmk_firmware/keyboards/biacco42/ergo42/keymaps/iksvo/keymap.c"
configure () {