summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorstuebinm2024-06-04 16:06:44 +0200
committerstuebinm2024-06-04 16:06:44 +0200
commit9bf026e55b72af7aa14096440537fefddc56c212 (patch)
tree62ff60ecce00a63bf94c2057db8223da7eefbfb4 /home
parent23889e8d54baede939d4b7a921cd0291a03e7b8f (diff)
home: simple alias for reading qr codes on screen
Diffstat (limited to 'home')
-rw-r--r--home/home.nix1
-rw-r--r--home/packages.nix3
2 files changed, 3 insertions, 1 deletions
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