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 a5e00ba062b32e9bca2d0ff9cf4aa5ae0b47f4ca
parent d7a6ef37c83a96a46ac3d2a5d20f9b10215c728a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 10 Dec 2020 10:38:26 +0100

add zoom.sh script to launch (web)client as another user in separate X session

Diffstat:
A.local/bin/zoom.sh | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/.local/bin/zoom.sh b/.local/bin/zoom.sh @@ -0,0 +1,9 @@ +#!/bin/sh +Xephyr -ac -screen 1600x900 -reset -terminate :1 & +sleep 1 +sudo -u zoom sh -c 'export DISPLAY=:1; dwm & printf '%s' '$url' | xclip" +if command -v zoom >/dev/null 2>&1; then + sudo -u zoom sh -c 'DISPLAY=:1 zoom '$url' >/dev/null 2>&1 &' +else + sudo -u zoom sh -c "DISPLAY=:1 chromium '$url' >/dev/null &" +fi