From a17566ac4bbc7cbd2675e93453117b95a367af12 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sat, 1 May 2021 11:50:09 +0100 Subject: [PATCH] Start sway via .profile --- .config/systemd/user/sway.service | 11 ----------- .gitignore | 1 + .profile | 3 +++ install | 1 - 4 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 .config/systemd/user/sway.service diff --git a/.config/systemd/user/sway.service b/.config/systemd/user/sway.service deleted file mode 100644 index 5477d74..0000000 --- a/.config/systemd/user/sway.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Sway window manager - -[Service] -ExecStart=/usr/bin/sway -Restart=always -RestartSec=10 - -[Install] -WantedBy=wm.target - diff --git a/.gitignore b/.gitignore index c51360f..d8bf97a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ .config/dconf .config/nvim/autoload/ .config/pulse/ +.config/systemd/user/*.wants .config/zsh/.zcompdump diff --git a/.profile b/.profile index dc39dbd..95e18f4 100644 --- a/.profile +++ b/.profile @@ -42,3 +42,6 @@ export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # Application options export QT_QPA_PLATFORMTHEME="gtk2" + +# Start Sway +[ "$(tty)" = "/dev/tty1" ] && exec sway diff --git a/install b/install index 9f534ed..aef8277 100755 --- a/install +++ b/install @@ -77,7 +77,6 @@ install() { configure() { systemctl --user enable ssh-agent - systemctl --user enable sway } install && link && configure