Fix files and directories spaces (dmenu_fbrun)
This commit is contained in:
parent
fb7b9fb5dc
commit
ec0a28268b
|
@ -8,9 +8,7 @@
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
show_icon_tree() {
|
show_icon_tree() {
|
||||||
list_tree="${@}"
|
ls -1 | while read current ; do
|
||||||
#current_path=$(pwd)
|
|
||||||
for current in ${list_tree} ; do
|
|
||||||
if [ -f "${current}" ] ; then
|
if [ -f "${current}" ] ; then
|
||||||
echo " ${current}"
|
echo " ${current}"
|
||||||
elif [ -d "${current}" ] ; then
|
elif [ -d "${current}" ] ; then
|
||||||
|
@ -46,8 +44,7 @@ remove_icon() {
|
||||||
|
|
||||||
file=1
|
file=1
|
||||||
while [ "${file}" ]; do
|
while [ "${file}" ]; do
|
||||||
file_list=$(ls -1)
|
file_icon=$(show_icon_tree | dmenu -p " filebrowser: $(basename $(pwd))")
|
||||||
file_icon=$(show_icon_tree "${file_list}" | dmenu -p " filebrowser: $(basename $(pwd))")
|
|
||||||
file=$(remove_icon "${file_icon}")
|
file=$(remove_icon "${file_icon}")
|
||||||
echo "# ${file} #"
|
echo "# ${file} #"
|
||||||
if [ -e "${file}" ]; then
|
if [ -e "${file}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user