Dotfiles config update (2022-05-26)

This commit is contained in:
q3aql 2022-05-26 23:56:27 +02:00
parent c87cc70c08
commit 7bcd5122db
2 changed files with 19 additions and 7 deletions

View File

@ -13,8 +13,8 @@ list_desktop_files() {
}
list_desktop_icons() {
list_desktop_files | while read desktop_file ; do
echo " ${desktop_file}"
list_desktop_files | while read current_desktop ; do
echo " ${current_desktop}"
done
}
@ -37,9 +37,18 @@ else
fi
#list_output=$(list_desktop_files | dmenu "$@")
#if [ -f "${desktop_files}/${list_output}" ] ; then
# ${runDesktop} "${desktop_files}/${list_output}"
#elif [ -f "${desktop_files_home}/${list_output}" ] ; then
# ${runDesktop} "${desktop_files_home}/${list_output}"
#fi
list_output=$(list_desktop_icons | dmenu "$@")
if [ -f "${desktop_files}/${list_output}" ] ; then
${runDesktop} "${desktop_files}/${list_output}"
elif [ -f "${desktop_files_home}/${list_output}" ] ; then
${runDesktop} "${desktop_files_home}/${list_output}"
run_output=$(echo ${list_output} | cut -c 4-999)
system_file=$(echo -n ${desktop_files}/ ; echo ${run_output})
home_file=$(echo -n ${desktop_files_home}/ ; echo ${run_output})
if [ -f "${system_file}" ] ; then
${runDesktop} "${system_file}"
elif [ -f "${home_file}" ] ; then
${runDesktop} "${home_file}"
fi

View File

@ -22,5 +22,8 @@ list_binaries_icons() {
}
#list_output=$(list_binaries | dmenu "$@")
#${list_output}
list_output=$(list_binaries_icons | dmenu "$@")
${list_output}
run_output=$(echo "${list_output}" | cut -c4-999)
${run_output}