mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 18:19:09 +00:00
![Gabriel Arazas](/assets/img/avatar_default.png)
I think this is better for separating modules explicitly. This is also considered as there are similar objects between modules (e.g., NixOS and home-manager modules and users). Revert users module to old position
17 lines
433 B
Bash
Executable File
17 lines
433 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Parse various code from image selection with zbarimg and maim.
|
|
|
|
# Depedencies:
|
|
# * maim v5.6.3
|
|
# * zbarimg v0.23.1
|
|
# * GNU awk v5.1.0
|
|
# * perl v5.30.2
|
|
|
|
# This is a small script so pipeline fails can be accepted here.
|
|
set -o pipefail
|
|
|
|
notify-send "Select a region for the barcode (QR codes, ISBN, bar codes)"
|
|
maim --select --hidecursor --quiet | zbarimg - --quiet --oneshot --raw | xclip -selection clipboard
|
|
|