Skip to content

Instantly share code, notes, and snippets.

@cole-h
Created May 4, 2020 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cole-h/ab2dc78c7be2d4907fdf6b66d1bd752f to your computer and use it in GitHub Desktop.
Save cole-h/ab2dc78c7be2d4907fdf6b66d1bd752f to your computer and use it in GitHub Desktop.
if [ (tty) = "/dev/tty1" ]
if [ (systemctl --user is-active sway.service) != "active" ]
systemctl --user unset-environment SWAYSOCK I3SOCK WAYLAND_DISPLAY DISPLAY \
IN_NIX_SHELL __HM_SESS_VARS_SOURCED GPG_TTY
systemctl --user import-environment
exec systemctl --user --wait start sway.service
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment