diff options
author | A Farzat <a@farzat.xyz> | 2024-11-14 21:53:57 +0900 |
---|---|---|
committer | A Farzat <a@farzat.xyz> | 2024-11-14 21:53:57 +0900 |
commit | 991f329aaf8f22665e59e9cd5068fbd6fe3d571d (patch) | |
tree | 69487cddaba962e80e96378082ab48316d1addae | |
parent | dca3c306a5e3e7af0b6052a21ab2737900767171 (diff) | |
download | dotfiles-991f329aaf8f22665e59e9cd5068fbd6fe3d571d.tar.gz dotfiles-991f329aaf8f22665e59e9cd5068fbd6fe3d571d.zip |
-rw-r--r-- | .config/mpv/scripts/socket/LICENSE (renamed from .config/mpv/scripts/mpv_socket/LICENSE) | 0 | ||||
-rw-r--r-- | .config/mpv/scripts/socket/main.lua (renamed from .config/mpv/scripts/mpv_socket/main.lua) | 2 | ||||
-rwxr-xr-x | bin/dmenu/tmux_umpv | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/.config/mpv/scripts/mpv_socket/LICENSE b/.config/mpv/scripts/socket/LICENSE index db38795..db38795 100644 --- a/.config/mpv/scripts/mpv_socket/LICENSE +++ b/.config/mpv/scripts/socket/LICENSE diff --git a/.config/mpv/scripts/mpv_socket/main.lua b/.config/mpv/scripts/socket/main.lua index cc9da6b..0a35eee 100644 --- a/.config/mpv/scripts/mpv_socket/main.lua +++ b/.config/mpv/scripts/socket/main.lua @@ -10,7 +10,7 @@ mp.command_native({capture_stdout = true, capture_stderr = true, args = {"mkdir", "-p", sock_dir}, name = "subprocess", playback_only = false}) local sock_file = utils.join_path(sock_dir, -mp.get_opt("mpv_socket") or utils.getpid()) +mp.get_opt("socket") or utils.getpid()) mp.set_property("options/input-ipc-server", sock_file) diff --git a/bin/dmenu/tmux_umpv b/bin/dmenu/tmux_umpv index eb2b4e6..8818b0b 100755 --- a/bin/dmenu/tmux_umpv +++ b/bin/dmenu/tmux_umpv @@ -15,5 +15,5 @@ if printf '{ "command": ["get_property", "path"] }\n' | nc -NU "$sock_dir/$sock" jq -cn --arg l "$link" '{"command":["loadfile",($l),"append"]},{"command":["print-text","LOADFILE:= "+($l)]}' done | nc -NU "$sock_dir/$sock" >/dev/null else - tmux neww -t mpv: mpv --volume=50 --script-opts=mpv_socket="$sock",print_filenames=yes "$@" + tmux neww -t mpv: mpv --volume=50 --script-opts=socket="$sock",print_filenames=yes "$@" fi |