feat: add bulk script

This commit is contained in:
David JULIEN 2021-02-12 23:23:40 +01:00
parent fd71978fc5
commit 180a969ef7
2 changed files with 16 additions and 1 deletions

View File

@ -14,7 +14,7 @@
- bat_notify : send a notification when battery runs low
- bibinput : add a **.bib** entry through `dmenu`
- bibshow : retrieve a **.bib** reference and copy to `xclip`
- brightup : raise the keyboard brightness
- bulk : execute batch commands through your favorite $EDITOR
- colorblocks : show the system colors through colored squares
- compiler : compile a file / runs a script if the filetype is supported
- displayselect : handle a multimonitor setup

15
.local/bin/bulk Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env sh
######################################################################
# @author : swytch (swytch@$HOSTNAME)
# @file : bulk
# @license : MIT
# @created : Wednesday Feb 10, 2021 00:27:55 CET
#
# @description : execute batch commands through your favorite $EDITOR
######################################################################
[ $1 = "" ] && 1="mv -i"
[ $1 = "sox" ] && flags="-C 320"
\ls | $EDITOR - -c ":%s/.*/$1 \"&\" $flags \"&\"/g"