dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 34a668d622eedbd3afe993608ba783d5e319a26e
parent ba8e263a26b508cc8107fcb54412ab1b1712de2a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 20 Jan 2021 09:46:51 +0100

zoom.us: fix url handling

Diffstat:
M.local/bin/zoom.sh | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/.local/bin/zoom.sh b/.local/bin/zoom.sh @@ -1,9 +1,13 @@ #!/bin/sh +if [ $# -ne 1 ]; then + printf 'usage: %s url\n' "${0##*/}" + exit 1 +fi Xephyr -ac -screen 1600x900 -reset -terminate :1 & sleep 1 -sudo -u zoom sh -c 'export DISPLAY=:1; dwm & printf '%s' '$url' | xclip" +sudo -u zoom sh -c "export DISPLAY=:1; dwm & printf '%s' '$1' | xclip" if command -v zoom >/dev/null 2>&1; then - sudo -u zoom sh -c 'DISPLAY=:1 zoom '$url' >/dev/null 2>&1 &' + sudo -u zoom sh -c "DISPLAY=:1 zoom '$1' >/dev/null 2>&1 &" else - sudo -u zoom sh -c "export DISPLAY=:1; export ENABLE_WASM=1; chrome --enable-wasm '$url' >/dev/null &" + sudo -u zoom sh -c "export DISPLAY=:1; export ENABLE_WASM=1; chrome --enable-wasm '$1' >/dev/null &" fi