mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-31 04:57:57 +00:00
0681d1fd7c
It's been a while but I've been using NixOS (or anything styled like it like GuixSD, for example) and distro-hopped from Arch Linux. I think it's high noon for making the structure of this setup to be truer to one of the big objectives which is how easy to transfer this between different setups. Which means I removed some things such as the package lists, systemd config files, and package manager-specific configs. While the solution is easy (which is to simply ignore the system-specific files) but I'm not going with the pragmatic solution not because I'm a dumbass but because I'm so smart that I want to create a challenge for myself to solve a puzzle on figuring out a way on how to structure my dotfiles. :) Such a productive use of my time, that's for sure.
17 lines
403 B
Bash
Executable File
17 lines
403 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 | zbarimg - --quiet | perl -pe 's|(.+?):||'
|
|
|