You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

16 line
501B

  1. {{ ansible_managed | comment }}
  2. [Unit]
  3. Description=barrier ssh connection
  4. PartOf=graphical-session.target
  5. [Service]
  6. Type=simple
  7. ExecStart=sh -c "sleep infinity | ssh $@" ssh -R 24800:localhost:24800 %i\
  8. fish -c "\"not test -p .barrier-unlock-lockscreen.fifo && mkfifo .barrier-unlock-lockscreen.fifo; test -p .barrier-unlock-lockscreen.fifo\"";\
  9. systemctl --user restart barrier-unlock-lockscreen.service;\
  10. exec cat > .barrier-unlock-lockscreen.fifo
  11. [Install]
  12. WantedBy=graphical-session.target