qr scanner & scripts

This commit is contained in:
tavo-wasd 2023-06-04 11:48:31 -06:00
parent 87b8933aec
commit 1fd0f2c8e7
3 changed files with 12 additions and 2 deletions

4
bashrc
View file

@ -41,7 +41,7 @@ alias \
vid="cd $HOME/Videos/ && ls" \ vid="cd $HOME/Videos/ && ls" \
mus="cd $HOME/Music/ && ls" \ mus="cd $HOME/Music/ && ls" \
ent="cd /mnt/Entr/ && 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" \ ls="exa -al --group-directories-first" \
sched="cat ~/Documents/schedule.txt" \ sched="cat ~/Documents/schedule.txt" \
fzf="fzf --cycle --reverse" \ fzf="fzf --cycle --reverse" \
@ -107,7 +107,7 @@ if [ "$1" = "list" ] ; then
fi fi
} }
bind '"\C-e":"fzfscripts\C-m"' bind '"\C-e":"fzf-scripts\C-m"'
# Autostart dwm after tty login # 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 type systemctl 2>/dev/null 1>&2 && if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then

3
scripts/fzf-scripts Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
$(ls ~/.config/scripts/ | fzf)

7
scripts/zbarimg-scan-barcode Executable file
View file

@ -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