You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
875 B
20 lines
875 B
3 years ago
|
#!/bin/bash
|
||
|
|
||
|
##############################################################################
|
||
|
#
|
||
|
# sbagen_select
|
||
|
# Wrapper for searching and quickly viewing sbagen files using fzf,rg, and bat
|
||
|
# (c) Steven Saus 2021
|
||
|
# Licensed under the MIT license
|
||
|
#
|
||
|
##############################################################################
|
||
|
|
||
|
SBAGenDir="/home/steven/apps/sbagen-1.4.4/"
|
||
|
OGGDir="/home/steven/apps/sbagen-1.4.4/"
|
||
|
|
||
|
sbgfile=$(fdfind . ${SBAGenDir} --follow --type file --extension sbg | fzf --no-hscroll -m --height 90% --border --ansi --no-bold --header="Choose SBA file" --preview='sed -n "/^#/p" {}')
|
||
|
|
||
|
oggfile=$(fdfind . ${SBAGenDir} --follow --type file --extension ogg | fzf --no-hscroll -m --height 90% --border --ansi --no-bold --header="Choose background" )
|
||
|
|
||
|
/usr/bin/xterm -e /usr/bin/padsp_32 /home/steven/apps/sbagen-1.4.4/sbagen -m "${oggfile}" "${sbgfile}" &
|