From 9bf026e55b72af7aa14096440537fefddc56c212 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 4 Jun 2024 16:06:44 +0200 Subject: home: simple alias for reading qr codes on screen --- home/home.nix | 1 + home/packages.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'home') diff --git a/home/home.nix b/home/home.nix index 9d2c41f..22640b9 100644 --- a/home/home.nix +++ b/home/home.nix @@ -104,6 +104,7 @@ noms = "curl https://www.bahn.de/service/zug/db_lounge -s | htmlq --attribute href a | grep Speisen | xargs curl -s | pdftotext - /dev/stdout | less"; gosh = "rlwrap gosh"; geojson2gtfs = ''jq -r ".features[0].geometry.coordinates | to_entries | map([.value[0], .value[1], .key])[] | @csv"''; + slurpqr = "grim -g (slurp) - | zbarimg -q --raw - | wl-copy -n && wl-paste"; }; functions.fetchpdf.body = '' set url $argv[1] diff --git a/home/packages.nix b/home/packages.nix index 840a01a..8e1c87c 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -25,7 +25,8 @@ in pkgFilter = pkg: lib.elem pkg.tlType [ "run" "bin" "doc" ]; }) # general cli utils - almanac libnotify grim slurp wl-clipboard showrt + almanac libnotify grim slurp zbar.override ({ enableVideo = false; withXorg = false; }) + wl-clipboard showrt kijetesantakaluotokieni mpc_cli duf dufs progress hledger wineWowPackages.full sops xdg-utils exiftool mercurial darcs git-annex-remote-remarkable2 -- cgit v1.2.3