diff --git a/bashrc b/bashrc index 2513695..df8a26d 100644 --- a/bashrc +++ b/bashrc @@ -41,7 +41,7 @@ alias \ vid="cd $HOME/Videos/ && ls" \ mus="cd $HOME/Music/ && ls" \ ent="cd /mnt/Entr/ && ls" \ - fzfscripts="fzf_nav /home/$(whoami)/.config/scripts" \ + fzf-edit-script="fzf_nav /home/$(whoami)/.config/scripts" \ ls="exa -al --group-directories-first" \ sched="cat ~/Documents/schedule.txt" \ fzf="fzf --cycle --reverse" \ @@ -107,7 +107,7 @@ if [ "$1" = "list" ] ; then fi } -bind '"\C-e":"fzfscripts\C-m"' +bind '"\C-e":"fzf-scripts\C-m"' # Autostart dwm after tty login type systemctl 2>/dev/null 1>&2 && if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then diff --git a/scripts/fzf-scripts b/scripts/fzf-scripts new file mode 100755 index 0000000..edca3ad --- /dev/null +++ b/scripts/fzf-scripts @@ -0,0 +1,3 @@ +#!/bin/sh + +$(ls ~/.config/scripts/ | fzf) diff --git a/scripts/zbarimg-scan-barcode b/scripts/zbarimg-scan-barcode new file mode 100755 index 0000000..1fe31c2 --- /dev/null +++ b/scripts/zbarimg-scan-barcode @@ -0,0 +1,7 @@ +#!/bin/sh + +scrot -s "$HOME/.local/cache/barcode-%Y-%m-%d.png" || exit +zbarimg "$HOME/.local/cache/barcode-"* + +# Delete created files +rm -rf $HOME/.local/cache/barcode-*.png