diff options
Diffstat (limited to '')
-rw-r--r-- | home/wm/sway/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/home/wm/sway/default.nix b/home/wm/sway/default.nix index 0ea5d8a..7ee6791 100644 --- a/home/wm/sway/default.nix +++ b/home/wm/sway/default.nix @@ -25,6 +25,26 @@ in XDG_SESSION_TYPE = "wayland"; }; + programs = { + zsh.loginExtra = '' + if [ $(ps ax | grep "[s]sh-agent" | wc -l) -eq 0 ] ; then + eval $(ssh-agent -s) > /dev/null + fi + if [ "$(tty)" = "/dev/tty1" ]; then + exec sway &> /dev/null + fi + ''; + + zsh.profileExtra = '' + if [ $(ps ax | grep "[s]sh-agent" | wc -l) -eq 0 ] ; then + eval $(ssh-agent -s) > /dev/null + fi + if [ "$(tty)" = "/dev/tty1" ]; then + exec sway &> /dev/null + fi + ''; + }; + wayland.windowManager.sway = { enable = true; # in order to import some variables (e.g. PATH) so that all the |