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