From 3160c1e6e9db12eb3f2a847feedc413be8178f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sat, 8 Sep 2018 16:36:36 +0200 Subject: [PATCH] wip Add ./shell.sh --- shell.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 shell.sh diff --git a/shell.sh b/shell.sh new file mode 100755 index 0000000..ee817c6 --- /dev/null +++ b/shell.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +old_display=$DISPLAY +NEW_DISPLAY=:3 + +export XDG_CONFIG_HOME=$HOME/paperwm/.config + +case $1 in + w*|-w*|--w*) + echo "Running Wayland Gnome Shell" + arg=--nested + ;; + *) + echo "Running X11 Gnome Shell" + Xephyr $NEW_DISPLAY & + arg=--x11 + ;; +esac + +# DISPLAY=$NEW_DISPLAY +eval $(dbus-launch --exit-with-session --sh-syntax) +echo $DBUS_SESSION_BUS_ADDRESS +echo -n $DBUS_SESSION_BUS_ADDRESS \ + | DISPLAY=$old_display xclip -i -selection clipboard +exec gnome-shell $arg