about summary refs log tree commit diff
path: root/home/shell/zsh/sway.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'home/shell/zsh/sway.zsh')
-rw-r--r--home/shell/zsh/sway.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/home/shell/zsh/sway.zsh b/home/shell/zsh/sway.zsh
new file mode 100644
index 0000000..69d5103
--- /dev/null
+++ b/home/shell/zsh/sway.zsh
@@ -0,0 +1,3 @@
+if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
+    exec sway
+fi