mirror of https://github.com/Flinner/dots.git
feat: general refactor
This commit is contained in:
parent
8fd1506408
commit
56b118cf1d
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# initial idea: Florian Bruhin (The-Compiler)
|
|
||||||
# author: Thore Bödecker (foxxx0)
|
|
||||||
|
|
||||||
_url="$1"
|
|
||||||
_qb_version='1.0.4'
|
|
||||||
_proto_version=1
|
|
||||||
_ipc_socket="${XDG_RUNTIME_DIR}/qutebrowser/ipc-$(echo -n "$USER" | md5sum | cut -d' ' -f1)"
|
|
||||||
_qute_bin="/usr/bin/qutebrowser"
|
|
||||||
|
|
||||||
printf '{"args": ["%s"], "target_arg": null, "version": "%s", "protocol_version": %d, "cwd": "%s"}\n' \
|
|
||||||
"${_url}" \
|
|
||||||
"${_qb_version}" \
|
|
||||||
"${_proto_version}" \
|
|
||||||
"${PWD}" | socat -lf /dev/null - UNIX-CONNECT:"${_ipc_socket}" || "$_qute_bin" "$@" &
|
|
||||||
|
|
Loading…
Reference in New Issue