The awesomewm keybindings and helper scripts reference xmms2 commands that need to be updated for mpv with IPC socket control.
Keybindings (rc.lua:392-396)
| Key |
Current (xmms2) |
New (mpv via socat) |
mod+\ |
xmms2 toggle |
echo '{"command":["cycle","pause"]}' | socat - /tmp/mpv-socket |
mod+' |
randomalbum.sh |
Already updated — works as-is |
mod+; |
nowplaying.sh |
Needs rewrite to query mpv socket |
mod+[ |
xmms2 prev |
echo '{"command":["playlist-prev"]}' | socat - /tmp/mpv-socket |
mod+] |
xmms2 next |
echo '{"command":["playlist-next"]}' | socat - /tmp/mpv-socket |
Scripts to update
~/bin/randomalbum.sh — already updated to use mpv with IPC socket
~/bin/nowplaying.sh — needs rewrite to query media-title from mpv socket
- Consider small wrapper scripts (e.g.
~/bin/music-toggle.sh) instead of inline socat in rc.lua
Notes
- mpv IPC socket at
/tmp/mpv-socket (set by --input-ipc-server in randomalbum.sh)
- socat is already installed on the system
- Can also remove mpd config (
~/.config/mpd) from Home Manager since we're not using it
The awesomewm keybindings and helper scripts reference xmms2 commands that need to be updated for mpv with IPC socket control.
Keybindings (rc.lua:392-396)
mod+\xmms2 toggleecho '{"command":["cycle","pause"]}' | socat - /tmp/mpv-socketmod+'randomalbum.shmod+;nowplaying.shmod+[xmms2 prevecho '{"command":["playlist-prev"]}' | socat - /tmp/mpv-socketmod+]xmms2 nextecho '{"command":["playlist-next"]}' | socat - /tmp/mpv-socketScripts to update
~/bin/randomalbum.sh— already updated to use mpv with IPC socket~/bin/nowplaying.sh— needs rewrite to querymedia-titlefrom mpv socket~/bin/music-toggle.sh) instead of inline socat in rc.luaNotes
/tmp/mpv-socket(set by--input-ipc-serverin randomalbum.sh)~/.config/mpd) from Home Manager since we're not using it