From 3674ce274b1e386fcff1db0c8c740044a779d7e5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 30 Oct 2018 12:56:32 +0100 Subject: [fish] auto start sway if it is installed set GPG_TTY because the gpg-agent told me to. --- config/fish/config.fish | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'config/fish') diff --git a/config/fish/config.fish b/config/fish/config.fish index 05f72b8..d92cba8 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -98,10 +98,19 @@ if type -q yaourt end end +set -x GPG_TTY (tty) + #start xsession if we are not in ssh if not set -q SSH_CLIENT; or not set -q SSH_TTY if not set -q DISPLAY; and test "$XDG_VTNR" = "1" - startx ~/.xinitrc + if type -q sway + set -x TERMINAL termite + set -x BROWSER qutebrowser + touch ~/.local/share/sway/log + sway -V ^ ~/.local/share/sway/log + else + startx ~/.xinitrc + end end else # display user in theme -- cgit v1.2.3