summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/polybar/config2
-rwxr-xr-xscripts/mpc_picker8
-rw-r--r--sh_aliases2
3 files changed, 7 insertions, 5 deletions
diff --git a/config/polybar/config b/config/polybar/config
index 6c370a6..e1fcd5b 100644
--- a/config/polybar/config
+++ b/config/polybar/config
@@ -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
diff --git a/scripts/mpc_picker b/scripts/mpc_picker
index 0e6fddc..3758b0a 100755
--- a/scripts/mpc_picker
+++ b/scripts/mpc_picker
@@ -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"
diff --git a/sh_aliases b/sh_aliases
index 57bfabf..7d2d6ce 100644
--- a/sh_aliases
+++ b/sh_aliases
@@ -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 () {