Add zsh vim bindings, change the MPC data, hotkey changes

This commit is contained in:
Jimbo 2024-10-27 02:57:53 -04:00
parent e78895916f
commit 2550c9b195
3 changed files with 4 additions and 2 deletions

View file

@ -146,7 +146,7 @@
exec-if = "mpc status | grep -q '^\\[playing\\] \\|^\\[paused\\]'";
exec = pkgs.writeScript "mpvMetadata" ''
get_metadata() {
mpc --format "%file%" | head -n 1 | sed -E 's/\.(mp3|mp4|m4a|mov|flac|opus|oga)$//; s/&/&/g'
mpc | head -n 1
}
truncate_string() {