wip Add ./shell.sh

This commit is contained in:
Tor Hedin Brønner
2018-09-08 17:21:33 +02:00
parent cc7fb6efb9
commit 3160c1e6e9
Executable
+25
View File
@@ -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