New backup 2024-04-10 16:15:03
This commit is contained in:
parent
32c4b84f8b
commit
32c7b642c5
1 changed files with 8 additions and 6 deletions
|
@ -3,13 +3,11 @@
|
||||||
profiles=( "Personal" "Development" "School" "Work" )
|
profiles=( "Personal" "Development" "School" "Work" )
|
||||||
icons=( "~" "" "" "" )
|
icons=( "~" "" "" "" )
|
||||||
|
|
||||||
echo ${#profiles[@]}
|
profilem=$((${#profiles[@]}-1))
|
||||||
|
|
||||||
exit
|
#echo ${#profiles[@]}
|
||||||
|
|
||||||
for p in ${profiles[@]};do
|
#exit
|
||||||
echo "${p}"
|
|
||||||
done
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
next|prev)
|
next|prev)
|
||||||
|
@ -27,7 +25,11 @@ case $1 in
|
||||||
op="${profiles[$new_profile]}"
|
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
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue