This commit is contained in:
Chris Cochrun 2022-04-22 14:38:24 -05:00
parent a7494f2de1
commit cb6c51248b
2 changed files with 13 additions and 12 deletions

View file

@ -1,11 +1,11 @@
[General] [General]
buttons=@Variant(\0\0\0\x7f\0\0\0\vQList<int>\0\0\0\0\x15\0\0\0\0\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x4\0\0\0\x5\0\0\0\x6\0\0\0\x12\0\0\0\xf\0\0\0\x16\0\0\0\x13\0\0\0\a\0\0\0\b\0\0\0\t\0\0\0\x10\0\0\0\n\0\0\0\v\0\0\0\x17\0\0\0\xe\0\0\0\f\0\0\0\x11)
contrastOpacity=175 contrastOpacity=175
contrastUiColor=#db8800 contrastUiColor=#db8800
disabledTrayIcon=true disabledTrayIcon=true
drawColor=#00ff00 drawColor=#00ffff
drawThickness=75 drawThickness=75
saveAfterCopy=true saveAfterCopy=true
saveAfterCopyPath=/home/chris/Pictures
savePath=/home/chris/Pictures savePath=/home/chris/Pictures
startupLaunch=false startupLaunch=false
uiColor=#00a6d1 uiColor=#00a6d1

View file

@ -18,16 +18,17 @@ defcmd="fzf"
guicmd="rofi -no-lazy-grab -dmenu -i -theme launchers-git/"$style".rasi" #uncomment next line for dmenu guicmd="rofi -no-lazy-grab -dmenu -i -theme launchers-git/"$style".rasi" #uncomment next line for dmenu
#guicmd="dmenu -i -l 15" #guicmd="dmenu -i -l 15"
promptcmd="$defcmd" promptcmd="$defcmd"
if [ -z "$*" ]; then # if [ -z "$*" ]; then
echo -n "Search: " # echo -n "Search: "
read -r query # read -r query
else # else
case "$1" in # case "$1" in
-r) query=$(echo | $guicmd -p "Search: ") # -r) query=$(echo | $guicmd -p "Search: ")
promptcmd="$guicmd -p Video:";; # promptcmd="$guicmd -p Video:";;
*) query="$*";; # *) query="$*";;
esac # esac
fi # fi
query=$($guicmd -p "Search: ")
if [ -z "$query" ]; then exit; fi if [ -z "$query" ]; then exit; fi
# sanitise the query # sanitise the query
query=$(sed \ query=$(sed \