From ca75999073fab44ea4ff2daf51446a737c529847 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Thu, 3 Oct 2019 17:17:52 +0200 Subject: [PATCH] stdin2qrcode --- files/stdin2qrcode.fish | 3 +++ tasks/main.yaml | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 files/stdin2qrcode.fish diff --git a/files/stdin2qrcode.fish b/files/stdin2qrcode.fish new file mode 100644 index 0000000..db6d82e --- /dev/null +++ b/files/stdin2qrcode.fish @@ -0,0 +1,3 @@ +function stdin2qrcode + qrencode -o - -lH -s 8 | xloadimage -fit -title stdin2qrcode stdin +end diff --git a/tasks/main.yaml b/tasks/main.yaml index 2d170ad..fdb9e09 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -16,6 +16,10 @@ - secure-delete - python-pip # needed by jmespath-terminal + # stdin2barcodewindow dependencies + - qrencode + - xloadimage + - name: jpath - JMESPath exploration tool in the terminal pip: name: jmespath-terminal @@ -46,3 +50,8 @@ copy: src: pam_env.conf dest: /etc/security/pam_env.conf + +- name: stdin2qrcode + copy: + src: stdin2qrcode.fish + dest: /etc/fish/functions/stdin2qrcode.fish