New backup 2024-04-10 16:15:03

This commit is contained in:
Penelope Gwen 2024-04-10 16:15:03 -06:00
parent 32c4b84f8b
commit 32c7b642c5

View file

@ -3,13 +3,11 @@
profiles=( "Personal" "Development" "School" "Work" )
icons=( "~" "" "" "" )
echo ${#profiles[@]}
profilem=$((${#profiles[@]}-1))
exit
#echo ${#profiles[@]}
for p in ${profiles[@]};do
echo "${p}"
done
#exit
case $1 in
next|prev)
@ -27,7 +25,11 @@ case $1 in
op="${profiles[$new_profile]}"
;;
*)
[[ -z $1 ]] && op=$( echo -e "~ Personal\n Development\n School\n Work" | wofi -i --dmenu --width 250 --height 320 | awk '{print $2}' ) || op="${1}"
for (( p="0"; p<=${profilem}; p++ ));do
[[ $p -eq $profilem ]] && nl="" || nl="\n"
wofilist="${wofilist}${icons[$p]} ${profiles[$p]}${nl}"
done
[[ -z $1 ]] && op=$( echo -e "${wofilist}" | wofi -i --dmenu --width 250 --height 320 | awk '{print $2}' ) || op="${1}"
;;
esac